UCE Docs / mysql_disconnect

Signature

void mysql_disconnect(MySQL* m)

Parameters

m : pointer to an existing MySQL connection struct

Closes an existing connection to a MySQL server.

Call this when you are done using a MySQL* connection handle.

Example

MySQL* db = mysql_connect();
if(db != 0) { mysql_disconnect(db); print("connection closed\n"); }
else print("(requires a reachable MySQL server)\n");
Output
connection closed