mysql_close
mysql_close terminates an open database connection and releases the memory allocated for the MYSQL handle.
Syntax
void mysql_close(MYSQL * mysql);Parameter
mysql- amysqlhandle, which was previously allocated by mysql_init() or mysql_real_connect().
Description
Closes a previously opened connection and deallocates all memory.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

