Name

mysql_close( )

Synopsis

void mysql_close(MYSQL *mysql)

Use this to close the connection to the MySQL serve. It releases the MYSQL object if allocated by mysql_init( ). It does not return a value.

...
mysql = mysql_init(NULL);
mysql_connect(mysql,"localhost","russell","password");
...
mysql_close(mysql);
...

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.