Knowledge Base
MilesWeb / Web Hosting FAQ

MySQL Max User Connections Error

Approx. read time : 2 min

Warning: mysql_connect() [function.mysql-connect]: User cPanel-user_site already has more than ‘max_user_connections’ active connections in /home/cPanel-user/public_html/general_lib/packages/cmf/v2/mysql.class.inc.php on line 2120

When accessing your website, you might face the error as above. This is due to the limitation of MySQL max user connections on the server. To fix the above error you will have to increase the max user connections. Here is how you can do it via SSH as root user.

Open file with your favorite editor.

#vi /etc/my.cnf

Find for max_connections & increase it to the value according to your server configuration and needs.

Restart MySQL with command below.

#/etc/init.d/mysql restart

Need help? We’re always here for you.