{"id":545,"date":"2022-08-17T16:57:19","date_gmt":"2022-08-17T16:57:19","guid":{"rendered":"https:\/\/blog.hostinger.io\/es\/support\/2022\/08\/17\/4274567-como-corregir-el-error-de-mysql-max_connections_per_hour-en-hostinger\/"},"modified":"2025-08-26T21:52:51","modified_gmt":"2025-08-26T21:52:51","slug":"4274567-como-corregir-el-error-de-mysql-max_connections_per_hour-en-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/es\/support\/4274567-como-corregir-el-error-de-mysql-max_connections_per_hour-en-hostinger\/","title":{"rendered":"C\u00f3mo Corregir el Error de MySQL max_connections_per_hour en Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Si su sitio web est&aacute; alojado en Hostinger y recibe un error con el l&iacute;mite <b>max_connections_per_hour<\/b>:<\/p><pre><code>Connection failed: User 'u1000000_database' has exceeded the 'max_connections_per_hour' resource (current value: 500)<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Puedes intentar lo siguiente:<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_00d075f5cd\">Opci&oacute;n 1: Usar Localhost<\/h2><p class=\"no-margin\">Aseg&uacute;rate de que el nombre de host de la base de datos est&eacute; establecido como <b>localhost <\/b>en el <b><a href=\"\/es\/support\/3313359\" target=\"_blank\" class=\"intercom-content-link\">archivo de configuraci&oacute;n<\/a><\/b> de tu sitio web, tal como <b>wp-config.php<\/b>.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\"><b>No es recomendable <\/b>establecer la IP de tu hosting como nombre de host para tu base de datos.<\/p>\n<\/div><p class=\"no-margin\">Por ejemplo, si los detalles de configuraci&oacute;n de su base de datos actual est&aacute;n configurados de esta forma:<\/p><pre><code> \/** Nombre de la base de datos para WordPress *\/ <br>define( 'DB_NAME', 'u1000000_database' );<br>\/** Nombre de host MySQL *\/<br>define( 'DB_HOST', '185.185.185.185' );<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Deber&aacute;s reemplazar el valor de la &uacute;ltima l&iacute;nea de <b>DB_HOST<\/b> a <b>localhost<\/b> de la siguiente manera:<\/p><pre><code>\/** Nombre de la base de datos para WordPress *\/ <br>define( 'DB_NAME', 'u1000000_database' ); <br>\/** Nombre de host de MySQL *\/ <br>define( 'DB_HOST', 'localhost');<\/code><\/pre><p class=\"no-margin\">\n<\/p><h2 id=\"h_7f3732278f\">Opci&oacute;n 2: Detener los procesos<\/h2><p class=\"no-margin\">Algunos c&oacute;digos no optimizados en tu sitio web pueden hacer que alcances el l&iacute;mite de <b>max_user_connections<\/b>. Para resolverlo, puedes terminar dichas conexiones manualmente siguiendo estos pasos:<\/p><ol>\n<li>\n<p class=\"no-margin\">Abre tu base de datos <b>a trav&eacute;s de phpMyAdmin.<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Haz clic en <b>SQL<\/b> en el men&uacute; superior, escribe el comando <b>SHOW PROCESSLIST <\/b>(mostrar lista de procesos) y da clic en <b>Ir <\/b>(Go):<br>&#8203;<\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"\/es\/support\/wp-content\/uploads\/sites\/60\/2022\/08\/a82094e9-eada-479f-bc36-60e70242da5b.jpg\"><\/div>\n<p class=\"no-margin\">\n<\/p><\/li>\n<li>\n<p class=\"no-margin\">Una vez hecho esto, se generar&aacute; la lista de procesos actuales. Puedes detener cada uno haciendo clic en <b>Detener el proceso<\/b> (Stop the process):<\/p>\n<\/li>\n<\/ol><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/es\/support\/wp-content\/uploads\/sites\/60\/2022\/08\/e29da1cd-6d77-49cf-b3bf-8e02a9dfc2e1.jpg\"><\/div><p class=\"no-margin\">Toma en cuenta que detener los procesos solo ayudar&aacute; temporalmente. Para una soluci&oacute;n m&aacute;s permanente, deber&aacute;s optimizar las consultas de tu base de datos o <b><a href=\"\/es\/support\/1583459\" target=\"_blank\" class=\"intercom-content-link\">mejorar tu plan de hosting<\/a><\/b> &#128640;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Resolver el error max_connections_per_hour<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[217],"tags":[],"class_list":["post-545","post","type-post","status-publish","format-standard","hentry","category-correccion-de-posibles-errores"],"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----mysql-max_connections_per_hour--hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/posts\/545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/comments?post=545"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/posts\/545\/revisions"}],"predecessor-version":[{"id":2896,"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/posts\/545\/revisions\/2896"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/media?parent=545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/categories?post=545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/es\/support\/wp-json\/wp\/v2\/tags?post=545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}