Too Many Connections accessing MySQL from PHP
Posted 09 June 2003 - 02:06 PM
I am Soooooo glad I found this site. It actually helped me finish my Game Project (http://www.dk-tower.com) but while working on it, I ran into some issues.
While looking at the code (which I based on the Membership System Tutorial v1) , there seem to be an awful lot of hits to the database and at times, the website (game & support site itself) show MySQL errors (Too Many Connections).
Is there something I can do to optimize the code so that it doesn\'t do this?
Posted 09 June 2003 - 04:11 PM
If you use MySQL, instead of connecting to the MySQL server with mysql_connect(), use mysql_pconnect(). This might help.
Posted 10 June 2003 - 12:25 PM
Posted 10 June 2003 - 04:47 PM
but for sure u have to increase the mysql connection which can be done by changing the config file.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users