Interested in improving this site? Please check the To Do page.
mysql.close
Close a MySQL connection
Syntax
mysql.close (dbid)
Params
A database connection ID
Returns
Nothing
Examples
on connect () {
local (id, result);
try {
id = mysql.connect("127.0.0.1", "root", "frontier", "frontier", 3306)}
else {
dialog.alert(mysql.getErrorMessage(id));
dialog.alert(mysql.getErrorNumber(id))};
result = mysql.close(id);
return result};
local (i);
mysql.init();
for i = 1 to 1000000 {
msg( i + ": " + connect() + " (" + sys.memavail() + ")")};
mysql.end()
Notes
The MySQL close API function doesn’t appear to return any value for success or failure.