mysql_close()
void mysql_close(MYSQL *mysql)
Use this function to close the connection to the MySQL
server. It also deallocates the connection handle pointed to by
MYSQL if the handle was allocated automatically by
mysql_init() or
mysql_connect(). It does not return a value.
Here is an example:
... mysql_connect(mysql,"localhost","ricky","adams"); ... mysql_close(mysql); ...