Warning: Mysql_connect() Too Many Connections In Mysql Error Web Pages
Post Description: warning: mysql_connect() too many connections in mysql error web pages
warning, mysql, connect, too, many, connections, in, mysql, error, web, pages
This Post Has Been Viewed 490 Times Since Fri Feb 29, 2008 12:01 pm Posted By pili with 1 replies
POST# 652
Posted On: Fri Feb 29, 2008 12:01 pm
Topic: Warning: Mysql_connect() Too Many Connections In Mysql Error Web Pages
can you please help me, i am getting this error, what does it mean and what do i need to do to fix it?
Fri Jun 15, 2007 2:01 pm
1
tada
Reply #1518
i had the same problem,
what happened to me, is that i was working on a script and i had a loop on it, well, my loop wasn't perfect so it kept on going to infinity. so i kept getting this error also after i ran the script.
so, if you are getting this error its because you have an endless loop in your script, you need to fix it, or else it will keep on happening.
once i fix the bug on my php script, i had to reset my server. so to do that, i have to restart my apache server. depending on what kind of operating system you have, you will have to restart you http server, in my situation i have linux so i ran this command:
/ect/init.d/httpd restart
once i restarted my server, and fixed my code, it was ok.
if it doesn't work by simple rebooting you http server, prob you will have to reboot the whole server.
i think there is an option in the httpd.conf file where you can prevent this from happening, but im not sure.
hope this helps