mysql_close — Closes a previously opened connection
void mysql_close(MYSQL * mysql);
Closes a previously opened connection.
In case mysql was allocated by mysql_init, mysql_close will also free allocated memory and resources.
mysql
mysql_close
A mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
mysql_init()
mysql_real_connect()
void.