{"id":1268,"date":"2020-07-21T19:37:29","date_gmt":"2020-07-21T19:37:29","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2020\/07\/21\/4274567-how-to-fix-the-max_connections_per_hour-mysql-error-at-hostinger\/"},"modified":"2026-10-29T14:59:08","modified_gmt":"2026-10-29T14:59:08","slug":"4274567-how-to-fix-the-max_connections_per_hour-mysql-error-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4274567-how-to-fix-the-max_connections_per_hour-mysql-error-at-hostinger\/","title":{"rendered":"How to fix the max_connections_per_hour MySQL error at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">If your website is hosted in Hostinger and you are receiving an error with <b>max_connections_per_hour<\/b> limit:<\/p>\n<pre><code>Connection failed: User 'u1000000_database' has exceeded the\r\n'max_connections_per_hour' resource (current value: 500)<\/code><\/pre>\n<p class=\"no-margin\">You can try the following:<\/p>\n<h2 id=\"h_05d6a8729b\">Option 1 \u2013 Use localhost<\/h2>\n<p class=\"no-margin\">Make sure that the database hostname is set to the <b>localhost <\/b>in your website\u2019s <b><a data-click-id=\"hgr-post-content-link-configuration-file\" class=\"intercom-content-link\" href=\"\/support\/3313359-how-to-find-the-website-s-configuration-file-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">configuration file<\/a><\/b>, such as <b>wp-config.php<\/b>.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\"><b>It is not recommended<\/b> to set your database hostname to your hosting IP.<\/p>\n<\/div>\n<p class=\"no-margin\">For example, if your current database configuration details are set up like this:<\/p>\n<pre><code>\/** The name of the database for WordPress *\/\r\ndefine( 'DB_NAME', 'u1000000_database' );\r\n\/** MySQL hostname *\/\r\ndefine( 'DB_HOST', '185.185.185.185' );<\/code><\/pre>\n<p class=\"no-margin\">Make sure to replace the last line value of <b>DB_HOST<\/b> to <b>localhost <\/b>as follows:<\/p>\n<pre><code>\/** The name of the database for WordPress *\/\r\ndefine( 'DB_NAME', 'u1000000_database' );\r\n\/** MySQL hostname *\/\r\ndefine( 'DB_HOST', 'localhost' );<\/code><\/pre>\n<h2 id=\"h_7f0f5900a0\">Option 2 \u2013 Stop the processes<\/h2>\n<p class=\"no-margin\">Some unoptimized code on your website can cause you to reach the <b>max_user_connections<\/b> limit. To solve it, you can terminate such connections manually by following these steps:<\/p>\n<ol>\n<li>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-open-your-database-via-phpmyadmin\" class=\"intercom-content-link\" href=\"\/support\/1583545-how-to-access-phpmyadmin-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">Open your database via phpMyAdmin<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Click <b>SQL<\/b> on the top menu, type <b>SHOW PROCESSLIST<\/b> and click <b>GO<\/b>:<br \/>\n\u200b<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2020\/07\/e4ad6cab-0471-4fa2-b592-7c424e7e8b8a.jpg\/public\" alt=\"Hostinger phpMyAdmin SQL tab with the Go button highlighted for running a query\" data-media-id=\"4854\" \/><\/div>\n<p class=\"no-margin\">\n<\/li>\n<li>\n<p class=\"no-margin\">Once that\u2019s done, the list of current processes will be generated. You can stop each one by clicking on <b>Stop the process<\/b>:<br \/>\n\u200b<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2020\/07\/48281a13-9f9c-495c-b852-47a1185ba437.jpg\/public\" alt=\"MySQL phpMyAdmin process list with highlighted Stop the process links\" data-media-id=\"4855\" \/><\/div>\n<\/li>\n<\/ol>\n<p class=\"no-margin\">Please note that stopping the processes will help only temporarily. For a more permanent solution, you will need to optimize your database queries or <b><a data-click-id=\"hgr-post-content-link-upgrade-your-plan\" class=\"intercom-content-link\" href=\"\/support\/1583459-how-to-upgrade-a-hosting-plan-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">upgrade your plan<\/a><\/b> \ud83d\ude80<\/p>\n<p><strong>Other common database issues<\/strong><\/p>\n<p>If you&#8217;re running into a different database-related problem, see:<\/p>\n<ul>\n<li><a data-click-id=\"hgr-post-content-link-what-to-do-if-the-database-size-limit-has-been-reached-in-ho\" href=\"\/support\/5534251-what-to-do-if-the-database-size-limit-has-been-reached-in-hostinger\/\">What to do if the database size limit has been reached in Hostinger<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-how-to-fix-the-mysql-operation-not-permitted-error\" href=\"\/support\/how-to-fix-mysql-operation-not-permitted-error\/\">How to fix the MySQL &#8220;Operation not permitted&#8221; error<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-how-to-fix-the-mysql-1064-error\" href=\"\/support\/1583555-how-to-fix-the-mysql-1064-error-at-hostinger\/\">How to fix the MySQL 1064 error<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-how-to-fix-the-user-already-has-more-than-max_user_connectio\" href=\"\/support\/1583511-how-to-fix-the-user-already-has-more-than-max-user-connections-error-at-hostinger\/\">How to fix the &#8220;User already has more than max_user_connections&#8221; error<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-how-to-fix-the-mysql-server-has-gone-away-error\" href=\"\/support\/1583503-how-to-fix-the-mysql-server-has-gone-away-error-at-hostinger\/\">How to fix the &#8220;MySQL server has gone away&#8221; error<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Solving max_connections_per_hour error<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[241],"tags":[],"class_list":["post-1268","post","type-post","status-publish","format-standard","hentry","category-database-troubleshooting"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4274567-how-to-fix-the-max_connections_per_hour-mysql-error-at-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/4274567-como-corregir-el-error-de-mysql-max_connections_per_hour-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4274567-comment-reparer-l-erreur-mysql-max_connections_per_hour-at-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4274567-bagaimana-cara-mengatasi-error-max_connections_per_hour-di-mysql-di-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/4274567-\u044f\u043a-\u0432\u0438\u043f\u0440\u0430\u0432\u0438\u0442\u0438-\u043f\u043e\u043c\u0438\u043b\u043a\u0443-mysql-max_connections_per_hour-\u043d\u0430-hostinger","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1268"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1268\/revisions"}],"predecessor-version":[{"id":23219,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1268\/revisions\/23219"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}