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.

Parameters

mysql

A mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().

Return value

void.

[Note]

See also