{"id":3136,"date":"2021-10-18T13:26:54","date_gmt":"2021-10-18T13:26:54","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=3136"},"modified":"2021-10-18T13:26:54","modified_gmt":"2021-10-18T13:26:54","slug":"mysql-max-user-connections-error","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/mysql-max-user-connections-error\/","title":{"rendered":"MySQL Max User Connections Error"},"content":{"rendered":"<p><strong>Warning: mysql_connect() [function.mysql-connect]: User cPanel-user_site already has more than \u2018max_user_connections\u2019 active connections in \/home\/cPanel-user\/public_html\/general_lib\/packages\/cmf\/v2\/mysql.class.inc.php on line 2120<\/strong><\/p>\n<p>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.<\/p>\n<p>Open file with your favorite editor.<\/p>\n<p><strong>#vi \/etc\/my.cnf<\/strong><\/p>\n<p>Find for\u00a0<strong>max_connections<\/strong>\u00a0&amp; increase it to the value according to your server configuration and needs.<\/p>\n<p>Restart MySQL with command below.<\/p>\n<p><strong>#\/etc\/init.d\/mysql restart<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Warning: mysql_connect() [function.mysql-connect]: User cPanel-user_site already has more than \u2018max_user_connections\u2019 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-3136","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=3136"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3136\/revisions"}],"predecessor-version":[{"id":3137,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3136\/revisions\/3137"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=3136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=3136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=3136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}