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