Server Logs Say Too Many Connections How To Fix Errors

Forums » MySQL » Server Logs Say Too Many Connections How To Fix Errors
this page will show you how you can fix the problem if you are getting Too many connections error on mysql/php server
today i was working on my wallpaper website and lately i've noticed that i have been getting alot of people on my site and while i was in the admin panel i kept getting an error saying:

Too many connections

so to fix this, this is what i did... i logged in to my dedicated server with ssh and loged in as root in the shell and send this command:

edit the my.cnf file to chage max_connections:
nano /etc/my.cnf


then add this line or change it to a higher number if you already have this variable: (i will increase it by 1000, the default its 100 for mysql server)
max_connections = 1000


save the changes and then restart your server:
/etc/init.d/mysqld restart




i will monitor to see how it goes



farahum
wow i can't believe i was able to find the solution to my problem i have been looking all over for this, very much thanks
http://wallpaperama.com/forums/too-many-connections-t6943.html
Title: Server Logs Say Too Many Connections How To Fix Errors [914]
Tags: too many connections
By
Comments 1
Visits 568