FreeBSD manual
download PDF document: mysql_close.3.pdf
mysql_close(3) MariaDB Connector/C mysql_close(3)
Name
mysql_close - Closes a previously opened connection
Synopsis
#include <mysql.h>
void mysql_close(MYSQL *mysql);
Description
Closes a previously opened connection and deallocates all memory.
Notes
o To reuse a connection handle after mysql_close() the handle must be
initialized again by mysql_init(3).
See also
o mysql_init(3)
o mysql_real_connect(3)
Version 3.3.1 mysql_close(3)