Log in

View Full Version : How do you close the vB MySQL connection?


kau
04-10-2008, 05:52 AM
We wrote some custom apps that use some vB files to pull in data ..

In our footer we close all our MySQL connections like; mysql_close($connection);

However the vB connection isn't getting closed.

Is there a simple way to close it using the mysql_close command?

Dismounted
04-10-2008, 05:58 AM
Unless you are using persistent connections (set in config.php), all connections will close at the end of the script's execution (PHP does this automatically).

kau
04-10-2008, 06:05 AM
Then why do I have 16-30 open connections all in Sleep mode? Some as high as 800s

nexialys
04-10-2008, 09:50 AM
exec_shut_down(); is the function to close the entire processing