I'm using Win98 with MySql, now having the problem in closing the database connection.
--------------------------------------------
$link = mysql_connect('localhost','','');
mysql_close($link);
--------------------------------------------
After run above command, i checked against
WinMySqlAdmin , connections was increase by
one eventhough i close the connection with
mysql_close. I checked even one hour later
the connection still not release.
Someone suggested use unset(), but the result
is the same.
Finally the numbers connection will increase
until 700-800 connections , what happened later is an error returned from mysql showing that 'too many connections'. I hav to restart the mysql server.
anyone know why mysql_close doesn't release
the connnection ??? how to overcome this
problem ?
thanks for ur answer.
--------------------------------------------
$link = mysql_connect('localhost','','');
mysql_close($link);
--------------------------------------------
After run above command, i checked against
WinMySqlAdmin , connections was increase by
one eventhough i close the connection with
mysql_close. I checked even one hour later
the connection still not release.
Someone suggested use unset(), but the result
is the same.
Finally the numbers connection will increase
until 700-800 connections , what happened later is an error returned from mysql showing that 'too many connections'. I hav to restart the mysql server.
anyone know why mysql_close doesn't release
the connnection ??? how to overcome this
problem ?
thanks for ur answer.