Warning: Mysql_connect() Too Many Connections In Mysql Error Web Pages



Warning: Mysql_connect() Too Many Connections In Mysql Error Web Pages
 (381) dminister a web business
Warning: Mysql_connect() Too Many Connections In Mysql Error Web Pages
Post Description:
Post Tags: warning, mysql, connect, too, many, connections, in, mysql, error, web, pages
This Post Has Been Viewed 608 Times Since Fri Jun 15, 2007 1:56 pm Posted By pili with 1 replies
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?

Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About Warning: Mysql_connect() Too Many Connections In Mysql Error Web Pages




:: 1 :: #6773 - Reply By tada On Fri Jun 15, 2007 2:01 pm
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