Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Web Hosting FAQ  >  MySQL Max User Connections Error
Top Scroll

MySQL Max User Connections Error

 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

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.