{"id":18307,"date":"2019-06-27T10:48:41","date_gmt":"2019-06-27T16:48:41","guid":{"rendered":"https:\/\/memberpress.com\/?p=18307"},"modified":"2022-02-03T08:39:59","modified_gmt":"2022-02-03T15:39:59","slug":"error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it","status":"publish","type":"post","link":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/","title":{"rendered":"C\u00f3mo solucionar el \"Error al establecer una conexi\u00f3n de base de datos\" en WordPress"},"content":{"rendered":"<p>En este art\u00edculo cubrimos el mensaje com\u00fan \"error al establecer una conexi\u00f3n de base de datos en WordPress\" que a veces puede aparecer cuando un sitio web no est\u00e1 disponible.<\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-69d8be799c225\" class=\"ez-toc-cssicon-toggle-label\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">QU\u00c9 HAY DENTRO<\/p>\n<span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d8be799c225\"  \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#What_Causes_a_WordPress_Database_Connection_Error\" >\u00bfQu\u00e9 causa un error de conexi\u00f3n a la base de datos de WordPress?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Incorrect_Database_Details\" >Detalles incorrectos de la base de datos<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Corrupted_Database\" >Base de datos da\u00f1ada<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Overloaded_Database_Server\" >Servidor de base de datos sobrecargado<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#How_to_Fix_a_WordPress_Database_Connection_Error\" >C\u00f3mo solucionar un error de conexi\u00f3n de base de datos de WordPress<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Dont_Forget_to_Check_Your_Backups\" >No olvide comprobar sus copias de seguridad<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Fixing_the_WordPress_Database_Connection_Error\" >Solucionar el error de conexi\u00f3n a la base de datos de WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Incorrect_Database_Details-2\" >Detalles incorrectos de la base de datos<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Overloaded_Database_Server-2\" >Servidor de base de datos sobrecargado<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Final_Thoughts\" >Reflexiones finales<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<p>En primer lugar, veremos algunas de las causas de este error, antes de explorar las distintas formas de solucionarlo.<\/p>\n\n\n\n<p>Aunque este art\u00edculo no profundiza demasiado en los detalles t\u00e9cnicos de las causas de este problema y las formas de solucionarlo, deber\u00eda ofrecerte una buena visi\u00f3n general de este problema para ayudarte a entenderlo mejor y hablar de \u00e9l con m\u00e1s confianza.<\/p>\n\n\n\n<p>As\u00ed que con eso en mente, empecemos...<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-causes-a-wordpress-database-connection-error\"><span class=\"ez-toc-section\" id=\"What_Causes_a_WordPress_Database_Connection_Error\"><\/span>\u00bfQu\u00e9 causa un error de conexi\u00f3n a la base de datos de WordPress?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A diferencia de algunos errores que puede ver en un sitio web o en su ordenador, como el error 404 o una advertencia de que se ha realizado una operaci\u00f3n ilegal, el error que estamos viendo hoy al menos tiene un nombre o mensaje de salida que se explica por s\u00ed mismo.<\/p>\n\n\n\n<p>As\u00ed que cuando vea el mensaje Error al establecer una conexi\u00f3n con la base de datos al intentar acceder a un sitio web de WordPress, significa realmente que el software de WordPress no puede conectarse a su base de datos subyacente.<\/p>\n\n\n\n<p>Como esta base de datos es donde se almacena todo el contenido del sitio web de WordPress, la configuraci\u00f3n, los archivos y m\u00e1s, es un problema bastante grande si el sitio no puede hacer la conexi\u00f3n. Sin embargo, aunque se trate de un problema grave, no significa que su sitio est\u00e9 roto sin remedio. Como veremos en la secci\u00f3n de soluciones de esta gu\u00eda para entender este error de base de datos de WordPress, se puede arreglar.<\/p>\n\n\n\n<p>Desafortunadamente, las causas de este problema var\u00edan y no hay una \u00fanica explicaci\u00f3n para cuando su sitio web WordPress no puede conectarse a su base de datos. Adem\u00e1s, como no hay una \u00fanica causa para este problema, tampoco hay una \u00fanica soluci\u00f3n para el error de base de datos de WordPress.<\/p>\n\n\n\n<p>Sin embargo, hay algunas causas comunes del error de conexi\u00f3n a la base de datos de WordPress que cubriremos r\u00e1pidamente aqu\u00ed antes de pasar a compartir algunos consejos sobre c\u00f3mo puede solucionar este problema.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"incorrect-database-details\"><span class=\"ez-toc-section\" id=\"Incorrect_Database_Details\"><\/span>Detalles incorrectos de la base de datos<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Una causa com\u00fan de este error es que los detalles que WordPress est\u00e1 utilizando para conectarse a la base de datos son incorrectos, incluyendo el nombre de la base de datos, nombre de usuario y <a href=\"https:\/\/memberpress.com\/go\/lastpass\/\" title=\"\u00daltimo pase Enlace de afiliaci\u00f3n\" class=\"pretty-link-keyword\"rel=\"nofollow \" target=\"_blank\">contrase\u00f1a<\/a>.<\/p>\n\n\n\n<p>Si WordPress no puede acceder al archivo que contiene estos detalles - el archivo wp-config.php - o el contenido de ese archivo no coincide con las credenciales de la base de datos, entonces ver\u00e1 el error de conexi\u00f3n a la base de datos.<\/p>\n\n\n\n<p>Entre las causas que pueden provocar este problema se incluyen los cambios en el nombre de usuario o la contrase\u00f1a de la base de datos que no se hayan reflejado en el archivo wp-config.php, o el cambio de nombre, la eliminaci\u00f3n o la corrupci\u00f3n del propio archivo wp-config.php.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"corrupted-database\"><span class=\"ez-toc-section\" id=\"Corrupted_Database\"><\/span>Base de datos da\u00f1ada<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Otra causa de este error podr\u00eda ser el hecho de que la base de datos se haya corrompido o da\u00f1ado de alguna manera. Si esto sucede, entonces WordPress podr\u00eda no ser capaz de conectarse a ella, produciendo el error estableciendo un mensaje de conexi\u00f3n de base de datos que se mostrar\u00e1 en lugar del sitio web y su contenido.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"overloaded-database-server\"><span class=\"ez-toc-section\" id=\"Overloaded_Database_Server\"><\/span>Servidor de base de datos sobrecargado<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Otra causa de este problema puede ser que el servidor que aloja la base de datos est\u00e9 sobrecargado. Cuando esto ocurre, los archivos del servidor pueden dejar de estar disponibles, provocando un error de conexi\u00f3n.<\/p>\n\n\n\n<p>Esta causa es especialmente com\u00fan si est\u00e1s utilizando alojamiento compartido barato para tu sitio web WordPress. Con este tipo de alojamiento, m\u00faltiples sitios web y sus bases de datos se almacenan en el mismo servidor, compartiendo los mismos recursos y aumentando las posibilidades de una sobrecarga. Debido a esto, puede que no sea su sitio web el que est\u00e9 causando el problema, y en su lugar, uno de sus vecinos en el mismo servidor.<\/p>\n\n\n\n<p>La buena noticia es que si esta es la causa, existe la posibilidad de que el error se resuelva por s\u00ed solo, una vez que la carga en el servidor se haya reducido.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-fix-a-wordpress-database-connection-error\"><span class=\"ez-toc-section\" id=\"How_to_Fix_a_WordPress_Database_Connection_Error\"><\/span>C\u00f3mo solucionar un error de conexi\u00f3n de base de datos de WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Aunque es un problema grave cuando un sitio web de WordPress no puede conectarse a su base de datos, principalmente porque el sitio deja de estar disponible, afortunadamente suele ser un problema que se puede solucionar.<\/p>\n\n\n\n<p>Aunque en muchos casos puede solucionar este problema usted mismo, lo primero que debe hacer es acudir a su <a href=\"https:\/\/memberpress.com\/go\/wpe\/pricing\/\" title=\"Enlace de afiliaci\u00f3n a WPengine\" class=\"pretty-link-keyword\"rel=\"nofollow \" target=\"_blank\">alojamiento web<\/a> servicio de asistencia. La mayor\u00eda de los buenos proveedores de alojamiento web tienen un canal de asistencia prioritaria que puedes utilizar si tu sitio web no est\u00e1 disponible, lo que ocurrir\u00e1 si aparece el mensaje de error al establecer una conexi\u00f3n con la base de datos. Pero sea cual sea su nivel de servicio, p\u00f3ngase en contacto con el servicio de asistencia de su proveedor de alojamiento web a trav\u00e9s del m\u00e9todo m\u00e1s receptivo, que suele ser <a href=\"https:\/\/memberpress.com\/go\/livechat\/\" title=\"Enlace de afiliaci\u00f3n de Livechat\" class=\"pretty-link-keyword\"rel=\"nofollow \" target=\"_blank\">chat en directo<\/a> o por tel\u00e9fono.<\/p>\n\n\n\n<p>Si quieres intentar solucionar el problema t\u00fa mismo, los consejos que te damos a continuaci\u00f3n deber\u00edan ayudarte a resolverlo.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"don-t-forget-to-check-your-backups\"><span class=\"ez-toc-section\" id=\"Dont_Forget_to_Check_Your_Backups\"><\/span>No olvide comprobar sus copias de seguridad<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Antes de intentar solucionar este problema, aseg\u00farese de que dispone de una copia de seguridad de su sitio web de WordPress y de su base de datos. Si ha estado utilizando uno de <a href=\"https:\/\/memberpress.com\/es\/best-backup-plugins-for-your-wordpress-membership-site\/\">nuestras soluciones de copia de seguridad de WordPress recomendadas<\/a>entonces es muy probable que ya tengas un archivo de tu sitio web al que recurrir en caso de que algo vaya mal, o si no puedes solucionar el error de conexi\u00f3n a la base de datos. Tu estrategia de copias de seguridad debe incluir la comprobaci\u00f3n de las mismas para asegurarte de que puedes restaurarlas cuando sea necesario.<\/p>\n\n\n\n<p>Si no has realizado copias de seguridad de tu sitio web en WordPress, puedes ponerte en contacto con tu proveedor de alojamiento web para ver si ha realizado copias de seguridad de tu sitio en tu nombre.<\/p>\n\n\n\n<p>Si no hay ninguna copia de seguridad reciente de tu sitio web, todav\u00eda puedes hacer una. Si bien no podr\u00e1 iniciar sesi\u00f3n en el panel de WordPress para crear una copia de seguridad cuando vea el mensaje de error de conexi\u00f3n a la base de datos, puede crear una copia de seguridad a nivel de servidor, utilizando las herramientas proporcionadas por su proveedor de alojamiento web. Estas herramientas suelen encontrarse en el cPanel. De nuevo, contacte con su proveedor de alojamiento web si no est\u00e1 seguro de c\u00f3mo crear una copia de seguridad fuera de WordPress.<\/p>\n\n\n\n<p>Cualquier copia de seguridad creada despu\u00e9s de que se haya producido el error de conexi\u00f3n a la base de datos seguir\u00e1 conteniendo el error, pero al menos si comete alg\u00fan error al intentar solucionar el problema, podr\u00e1 volver al momento en que cre\u00f3 la copia de seguridad e intentarlo de nuevo.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"fixing-the-wordpress-database-connection-error\"><span class=\"ez-toc-section\" id=\"Fixing_the_WordPress_Database_Connection_Error\"><\/span>Solucionar el error de conexi\u00f3n a la base de datos de WordPress<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>As\u00ed que, ahora que tiene sus archivos de copia de seguridad en alg\u00fan lugar seguro y accesible, aqu\u00ed est\u00e1n algunas de las maneras en que podr\u00eda ser posible solucionar el problema de error al establecer una conexi\u00f3n de base de datos en WordPress.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"incorrect-database-details\"><span class=\"ez-toc-section\" id=\"Incorrect_Database_Details-2\"><\/span>Detalles incorrectos de la base de datos<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Como se mencion\u00f3 anteriormente, si los detalles, como el nombre de la base de datos, el nombre de usuario y la contrase\u00f1a, en el archivo wp-config.php no coinciden con los detalles reales de su base de datos, WordPress no podr\u00e1 conectarse a la base de datos.<\/p>\n\n\n\n<p>As\u00ed que para comprobar si este desajuste es la causa del error, tendr\u00e1 que localizar y abrir su archivo wp-config.php y comprobar esos detalles usted mismo. El archivo wp-config.php se encuentra en el directorio ra\u00edz de su sitio web en el servidor donde est\u00e1 alojado. Para acceder a esa zona, tendr\u00e1s que iniciar sesi\u00f3n en el servidor a trav\u00e9s de FTP o utilizar un gestor de archivos en l\u00ednea para acceder al archivo.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"892\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager.png\" alt=\"Gestor de archivos\" class=\"wp-image-18310\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager.png 1600w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-300x167.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-1024x571.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-768x428.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-1536x856.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-305x170.png 305w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-840x468.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-1216x678.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-700x390.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-156x87.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager-1080x602.png 1080w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<p>Si no est\u00e1s seguro de c\u00f3mo hacerlo, tendr\u00e1s que buscar la documentaci\u00f3n proporcionada por tu proveedor de alojamiento o ponerte en contacto con su personal de asistencia.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1400\" height=\"832\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP.png\" alt=\"Servidor FTP\" class=\"wp-image-18311\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP.png 1400w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP-300x178.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP-1024x609.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP-768x456.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP-286x170.png 286w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP-840x499.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP-1151x684.png 1151w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP-700x416.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP-156x93.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP-1080x642.png 1080w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<p>Una vez que hayas encontrado el archivo, aseg\u00farate de crear una copia de seguridad del mismo antes de realizar ning\u00fan cambio. Una vez hecho esto, abre el archivo para editarlo, ya sea descarg\u00e1ndolo del servidor o a trav\u00e9s de la interfaz del gestor de archivos.<\/p>\n\n\n\n<p>Como muestra la imagen siguiente, las l\u00edneas que buscas comienzan con \/\/ ** Configuraci\u00f3n de MySQL: puedes obtener esta informaci\u00f3n de tu proveedor de alojamiento web ** \/\/<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1260\" height=\"442\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing.png\" alt=\"Entrada WP-Config.php en MySQL\" class=\"wp-image-18312\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing.png 1260w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing-300x105.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing-1024x359.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing-768x269.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing-485x170.png 485w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing-840x295.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing-1216x427.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing-700x246.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing-156x55.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing-1080x379.png 1080w\" sizes=\"(max-width: 1260px) 100vw, 1260px\" \/><\/figure>\n\n\n\n<p>En esa secci\u00f3n del archivo wp-config.php, puede ver los siguientes detalles:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>El nombre de la base de datos: DB_NAME<\/li><li>El nombre de usuario de la base de datos: DB_USER<\/li><li>La contrase\u00f1a de la base de datos: DB_PASSWORD<\/li><li>El nombre de host de la base de datos: DB_HOST<\/li><\/ul>\n\n\n\n<p>Ahora tendr\u00e1s que comprobar que esos datos coinciden con los de la base de datos. Para ello, tendr\u00e1s que acceder a la base de datos. Sus opciones aqu\u00ed ser\u00e1n definidas por su proveedor de alojamiento web. Pero una forma popular de acceder a la base de datos es a trav\u00e9s de su panel de control de alojamiento web, como por ejemplo a trav\u00e9s de la herramienta phpMyAdmin que se encuentra en la interfaz de cPanel.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1550\" height=\"313\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools.png\" alt=\"Herramientas de base de datos de cPanel\" class=\"wp-image-18313\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools.png 1550w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-300x61.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-1024x207.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-768x155.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-1536x310.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-660x133.png 660w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-840x170.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-1216x246.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-700x141.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-156x32.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools-1080x218.png 1080w\" sizes=\"(max-width: 1550px) 100vw, 1550px\" \/><\/figure>\n\n\n\n<p>Una vez que haya iniciado phpMyAdmin para acceder a la base de datos, debe confirmar los detalles del archivo wp-config.php que acabamos de ver. Esta es quiz\u00e1s la parte m\u00e1s dif\u00edcil del proceso, as\u00ed que lo mejor es referirse a <a href=\"https:\/\/kinsta.com\/blog\/error-establishing-a-database-connection\/\">esta gu\u00eda en el blog de Kinsta<\/a> que explica c\u00f3mo comprobar las credenciales de su base de datos de WordPress para ver si coinciden con los detalles de su archivo wp-config.php.<\/p>\n\n\n\n<p>Si en este punto prefiere solicitar ayuda a su proveedor de alojamiento web en lugar de proceder por su cuenta, puede enviar al personal del servicio de asistencia los detalles de la base de datos de su archivo wp-config.php para ayudarles a empezar.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"overloaded-database-server\"><span class=\"ez-toc-section\" id=\"Overloaded_Database_Server-2\"><\/span>Servidor de base de datos sobrecargado<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Si la causa del error de conexi\u00f3n a la base de datos es un servidor sobrecargado, es muy probable que el problema se resuelva por s\u00ed solo una vez que la carga del servidor haya disminuido.<\/p>\n\n\n\n<p>Por desgracia, no hay una forma r\u00e1pida y sencilla de determinar si esta es la causa del error. Aunque los datos de Google Analytics podr\u00edan revelar que tu sitio web est\u00e1 experimentando un aumento de tr\u00e1fico, podr\u00eda ser otro de los sitios web alojados en el mismo servidor el que est\u00e9 causando la sobrecarga.<\/p>\n\n\n\n<p>Si te pones en contacto con el personal de asistencia de tu proveedor de alojamiento web, deber\u00edan poder decirte si \u00e9sta es la causa de tu problema.<\/p>\n\n\n\n<p>Si un servidor sobrecargado est\u00e1 causando tiempos de inactividad en su sitio web, entonces podr\u00eda ser el momento de considerar cambiar su plan de alojamiento. Una opci\u00f3n ser\u00eda cambiar a un plan superior con su proveedor actual, o <a href=\"https:\/\/memberpress.com\/es\/how-to-choose-the-best-web-hosting-for-your-membership-site\/\">cambiar a un alojamiento web mejor<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"final-thoughts\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Reflexiones finales<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Esperemos que este art\u00edculo haya arrojado algo de luz sobre el infame error al establecer un problema de conexi\u00f3n a la base de datos que puede afectar a los sitios web de WordPress de vez en cuando.<\/p>\n\n\n\n<p>En la mayor\u00eda de los casos, su mejor opci\u00f3n ser\u00e1 ponerse en contacto con su proveedor de alojamiento web y pedirle que resuelva el problema. Sin embargo, la informaci\u00f3n de este art\u00edculo deber\u00eda haberte dado una mejor idea de cu\u00e1l es la causa del problema y algunas de las formas de solucionarlo.\u00a0<\/p>\n\n\n\n<p>Arreglar su sitio web usted mismo puede ser gratificante. Pero en la mayor\u00eda de los casos, es mejor dejarlo en manos de profesionales.<\/p>\n\n\n\n<p><em>\u00bfHa aparecido alguna vez en su sitio web el mensaje de error al establecer una conexi\u00f3n con una base de datos? Si es as\u00ed, \u00bfqu\u00e9 hiciste para resolverlo? H\u00e1ganoslo saber en los comentarios a continuaci\u00f3n. <\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>In this article we cover the common \u201cerror establish a database connection in WordPress\u201d message that can sometimes be displayed when a website is unavailable. First up, we look at some of the causes of this error, before exploring the different ways it can be fixed. Although this article doesn\u2019t dive too deeply into the [\u2026]<\/p>\n","protected":false},"author":2122,"featured_media":33261,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","_strive_checklists":"\"\"","_strive_active_checklist":"62291e2bb2422","_strive_post_notes":"","footnotes":""},"categories":[69],"tags":[72,508],"class_list":{"0":"post-18307","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-advice","8":"tag-support","9":"tag-troubleshooting","10":"entry"},"acf":{"plans":["scale"],"is_featured":false,"download_source":"none","mothership_slug":"","download_url":""},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.5.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"Find out more about the Error Establishing a Database Connection issue in WordPress and how it can be diagnosed and fixed.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Joe Fylan\"\/>\n\t<meta name=\"keywords\" content=\"wordpress database error,,support,troubleshooting\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.5.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"es_ES\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Error Establishing a Database Connection in WordPress\" \/>\n\t\t<meta property=\"og:description\" content=\"Find out more about the Error Establishing a Database Connection issue in WordPress and how it can be diagnosed and fixed.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/wp-trouble.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/wp-trouble.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1480\" \/>\n\t\t<meta property=\"og:image:height\" content=\"832\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-06-27T16:48:41+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-02-03T15:39:59+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/memberpress\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@memberpress\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Error Establishing a Database Connection in WordPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Find out more about the Error Establishing a Database Connection issue in WordPress and how it can be diagnosed and fixed.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/wp-trouble.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#blogposting\",\"name\":\"Error Establishing a Database Connection in WordPress\",\"headline\":\"How to Fix the \\u201cError Establishing a Database Connection\\u201d in WordPress\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/wp-trouble.jpg\",\"width\":1480,\"height\":832,\"caption\":\"WordPress troubleshooting image\"},\"datePublished\":\"2019-06-27T10:48:41-04:00\",\"dateModified\":\"2022-02-03T08:39:59-05:00\",\"inLanguage\":\"es-ES\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#webpage\"},\"articleSection\":\"Advice, Support, troubleshooting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/category\\\/advice\\\/#listItem\",\"name\":\"Advice\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/category\\\/advice\\\/#listItem\",\"position\":2,\"name\":\"Advice\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/category\\\/advice\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#listItem\",\"name\":\"How to Fix the \\u201cError Establishing a Database Connection\\u201d in WordPress\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#listItem\",\"position\":3,\"name\":\"How to Fix the \\u201cError Establishing a Database Connection\\u201d in WordPress\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/category\\\/advice\\\/#listItem\",\"name\":\"Advice\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/\",\"name\":\"Joe Fylan\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/8efbb5b67aecb906b5f72f49bd070141.jpg?ver=1775748485\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/\",\"name\":\"Error Establishing a Database Connection in WordPress\",\"description\":\"Find out more about the Error Establishing a Database Connection issue in WordPress and how it can be diagnosed and fixed.\",\"inLanguage\":\"es-ES\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/jfylan\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/wp-trouble.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#mainImage\",\"width\":1480,\"height\":832,\"caption\":\"WordPress troubleshooting image\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#mainImage\"},\"datePublished\":\"2019-06-27T10:48:41-04:00\",\"dateModified\":\"2022-02-03T08:39:59-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"es-ES\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Error Establishing a Database Connection in WordPress<\/title>\n\n","aioseo_head_json":{"title":"Error al establecer una conexi\u00f3n de base de datos en WordPress","description":"Obtenga m\u00e1s informaci\u00f3n sobre el problema Error al establecer una conexi\u00f3n de base de datos en WordPress y sobre c\u00f3mo diagnosticarlo y solucionarlo.","canonical_url":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/","robots":"max-image-preview:large","keywords":"wordpress database error,,support,troubleshooting","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#blogposting","name":"Error Establishing a Database Connection in WordPress","headline":"How to Fix the \u201cError Establishing a Database Connection\u201d in WordPress","author":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/wp-trouble.jpg","width":1480,"height":832,"caption":"WordPress troubleshooting image"},"datePublished":"2019-06-27T10:48:41-04:00","dateModified":"2022-02-03T08:39:59-05:00","inLanguage":"es-ES","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#webpage"},"articleSection":"Advice, Support, troubleshooting"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/es","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/category\/advice\/#listItem","name":"Advice"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/category\/advice\/#listItem","position":2,"name":"Advice","item":"https:\/\/memberpress.com\/es\/blog\/category\/advice\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#listItem","name":"How to Fix the \u201cError Establishing a Database Connection\u201d in WordPress"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#listItem","position":3,"name":"How to Fix the \u201cError Establishing a Database Connection\u201d in WordPress","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/blog\/category\/advice\/#listItem","name":"Advice"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/es\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/es\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/#author","url":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/","name":"Joe Fylan","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/8efbb5b67aecb906b5f72f49bd070141.jpg?ver=1775748485"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#webpage","url":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/","name":"Error Establishing a Database Connection in WordPress","description":"Find out more about the Error Establishing a Database Connection issue in WordPress and how it can be diagnosed and fixed.","inLanguage":"es-ES","isPartOf":{"@id":"https:\/\/memberpress.com\/es\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/jfylan\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/wp-trouble.jpg","@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#mainImage","width":1480,"height":832,"caption":"WordPress troubleshooting image"},"primaryImageOfPage":{"@id":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#mainImage"},"datePublished":"2019-06-27T10:48:41-04:00","dateModified":"2022-02-03T08:39:59-05:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/es\/#website","url":"https:\/\/memberpress.com\/es\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"es-ES","publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"}}]},"og:locale":"es_ES","og:site_name":"MemberPress","og:type":"article","og:title":"Error Establishing a Database Connection in WordPress","og:description":"Find out more about the Error Establishing a Database Connection issue in WordPress and how it can be diagnosed and fixed.","og:url":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/wp-trouble.jpg","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/wp-trouble.jpg","og:image:width":1480,"og:image:height":832,"article:published_time":"2019-06-27T16:48:41+00:00","article:modified_time":"2022-02-03T15:39:59+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"Error Establishing a Database Connection in WordPress","twitter:description":"Find out more about the Error Establishing a Database Connection issue in WordPress and how it can be diagnosed and fixed.","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/wp-trouble.jpg"},"aioseo_meta_data":{"post_id":"18307","title":"Error al establecer una conexi\u00f3n de base de datos en WordPress","description":"Obtenga m\u00e1s informaci\u00f3n sobre el problema Error al establecer una conexi\u00f3n de base de datos en WordPress y sobre c\u00f3mo diagnosticarlo y solucionarlo.","keywords":[{"label":"WordPress database error,","value":"WordPress database error,"}],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2025-10-09 17:53:12","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":null,"ai":null,"created":"2020-12-21 16:18:00","updated":"2026-03-03 15:06:50"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\/blog\/category\/advice\/\" title=\"Advice\">Advice<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tHow to Fix the \u201cError Establishing a Database Connection\u201d in WordPress\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/es"},{"label":"Advice","link":"https:\/\/memberpress.com\/es\/blog\/category\/advice\/"},{"label":"How to Fix the \u201cError Establishing a Database Connection\u201d in WordPress","link":"https:\/\/memberpress.com\/es\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/"}],"app_bookmark":{"bookmark_id":0,"is_bookmarked":false,"bookmark_date":0},"comments_count":"1","content_native":[{"type":"core\/paragraph","render":"<p>In this article we cover the common \u201cerror establish a database connection in WordPress\u201d message that can sometimes be displayed when a website is unavailable.<\/p>","content":[{"type":"text","data":"In this article we cover the common \u201cerror establish a database connection in WordPress\u201d message that can sometimes be displayed when a website is unavailable."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>First up, we look at some of the causes of this error, before exploring the different ways it can be fixed.<\/p>","content":[{"type":"text","data":"First up, we look at some of the causes of this error, before exploring the different ways it can be fixed."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Although this article doesn\u2019t dive too deeply into the technical details behind the causes of this problem and the ways to fix it, this article should give you a good overview of this issue to help you understand it better and speak about it more confidently.<\/p>","content":[{"type":"text","data":"Although this article doesn\u2019t dive too deeply into the technical details behind the causes of this problem and the ways to fix it, this article should give you a good overview of this issue to help you understand it better and speak about it more confidently."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>So with that in mind, let\u2019s begin\u2026<\/p>","content":[{"type":"text","data":"So with that in mind, let\u2019s begin\u2026"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h2 class=\"wp-block-heading\" id=\"what-causes-a-wordpress-database-connection-error\">What Causes a WordPress Database Connection Error?<\/h2>","content":"\u00bfQu\u00e9 causa un error de conexi\u00f3n a la base de datos de WordPress?","data":[],"style":{"align":"left","parent_style":{},"header":"h2","fontSize":"27px"}},{"type":"core\/paragraph","render":"<p>Unlike some errors that you might see on a website or on your computer, such as the 404 error or a warning that an illegal operation has been performed, the error that we\u2019re looking at today at least has a self-explanatory name or output message.<\/p>","content":[{"type":"text","data":"Unlike some errors that you might see on a website or on your computer, such as the 404 error or a warning that an illegal operation has been performed, the error that we\u2019re looking at today at least has a self-explanatory name or output message."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>So when you see the Error Establishing a Database Connection message when trying to access a WordPress website, it really does mean that the WordPress software can\u2019t connect to its underlying database.<\/p>","content":[{"type":"text","data":"So when you see the Error Establishing a Database Connection message when trying to access a WordPress website, it really does mean that the WordPress software can\u2019t connect to its underlying database."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>As this database is where all of the WordPress website\u2019s content, settings, files, and more are stored, it\u2019s a pretty big problem if the site can\u2019t make the connection. However, even though it is a serious issue, it doesn\u2019t mean that your site is broken beyond repair. As we\u2019ll see in the solution section to this guide to understanding this WordPress database error, it can be fixed.<\/p>","content":[{"type":"text","data":"As this database is where all of the WordPress website\u2019s content, settings, files, and more are stored, it\u2019s a pretty big problem if the site can\u2019t make the connection. However, even though it is a serious issue, it doesn\u2019t mean that your site is broken beyond repair. As we\u2019ll see in the solution section to this guide to understanding this WordPress database error, it can be fixed."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Unfortunately, though, the causes for this problem do vary and there\u2019s no one explanation for when your WordPress website can\u2019t connect to its database. Also, as there\u2019s no single cause for this problem, there isn\u2019t a single solution to the WordPress database error either.<\/p>","content":[{"type":"text","data":"Unfortunately, though, the causes for this problem do vary and there\u2019s no one explanation for when your WordPress website can\u2019t connect to its database. Also, as there\u2019s no single cause for this problem, there isn\u2019t a single solution to the WordPress database error either."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>However, there are some common causes of the WordPress database connection error that we\u2019ll quickly cover here before moving on to sharing some tips on how you can fix this issue.<\/p>","content":[{"type":"text","data":"However, there are some common causes of the WordPress database connection error that we\u2019ll quickly cover here before moving on to sharing some tips on how you can fix this issue."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\" id=\"incorrect-database-details\">Incorrect Database Details<\/h3>","content":"Detalles incorrectos de la base de datos","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>One common cause of this error is that the details which WordPress is using to connect to the database are incorrect, including the database name, username, and password.<\/p>","content":[{"type":"text","data":"One common cause of this error is that the details which WordPress is using to connect to the database are incorrect, including the database name, username, and password."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>If WordPress can\u2019t access the file that contains these details \u2013 the wp-config.php file \u2013 or the contents of that file doesn\u2019t match the credentials of the database, then you\u2019ll see the database connection error.<\/p>","content":[{"type":"text","data":"If WordPress can\u2019t access the file that contains these details \u2013 the wp-config.php file \u2013 or the contents of that file doesn\u2019t match the credentials of the database, then you\u2019ll see the database connection error."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Causes that could lead to this problem arising include changes to the database username or password that haven\u2019t been reflected in the wp-config.php file, or the renaming, deletion, or corruption of the wp-config.php file itself.<\/p>","content":[{"type":"text","data":"Causes that could lead to this problem arising include changes to the database username or password that haven\u2019t been reflected in the wp-config.php file, or the renaming, deletion, or corruption of the wp-config.php file itself."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\" id=\"corrupted-database\">Corrupted Database<\/h3>","content":"Base de datos da\u00f1ada","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>Another cause of this error could be the fact that the database has been corrupted or damaged in some way. If this happens, then WordPress might not be able to connect to it, producing the error establishing a database connection message to be displayed instead of the website and its content.<\/p>","content":[{"type":"text","data":"Another cause of this error could be the fact that the database has been corrupted or damaged in some way. If this happens, then WordPress might not be able to connect to it, producing the error establishing a database connection message to be displayed instead of the website and its content."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\" id=\"overloaded-database-server\">Overloaded Database Server<\/h3>","content":"Servidor de base de datos sobrecargado","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>Another cause of this issue can be that the server hosting the database is overloaded. When this happens, the files on the server can become unavailable, causing a connection error.<\/p>","content":[{"type":"text","data":"Another cause of this issue can be that the server hosting the database is overloaded. When this happens, the files on the server can become unavailable, causing a connection error."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>This cause is especially common if you\u2019re using cheap shared hosting for your WordPress website. With this type of hosting, multiple websites and their databases are stored on the same server, sharing the same resources and increasing the chances of an overload. Due to this, it might not be your website that\u2019s causing the problem, and instead, one of your neighbors on the same server.<\/p>","content":[{"type":"text","data":"This cause is especially common if you\u2019re using cheap shared hosting for your WordPress website. With this type of hosting, multiple websites and their databases are stored on the same server, sharing the same resources and increasing the chances of an overload. Due to this, it might not be your website that\u2019s causing the problem, and instead, one of your neighbors on the same server."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>The good news is that if this is the cause, there\u2019s a chance the error will resolve itself, once the load on the server has reduced.<\/p>","content":[{"type":"text","data":"The good news is that if this is the cause, there\u2019s a chance the error will resolve itself, once the load on the server has reduced."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h2 class=\"wp-block-heading\" id=\"how-to-fix-a-wordpress-database-connection-error\">How to Fix a WordPress Database Connection Error<\/h2>","content":"C\u00f3mo solucionar un error de conexi\u00f3n de base de datos de WordPress","data":[],"style":{"align":"left","parent_style":{},"header":"h2","fontSize":"27px"}},{"type":"core\/paragraph","render":"<p>While it\u2019s a big deal when a WordPress website is unable to connect to its database \u2013 mainly because the site becomes unavailable -- thankfully, it\u2019s often a problem that can be fixed.<\/p>","content":[{"type":"text","data":"While it\u2019s a big deal when a WordPress website is unable to connect to its database \u2013 mainly because the site becomes unavailable -- thankfully, it\u2019s often a problem that can be fixed."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Although in many cases, you can fix this problem yourself, your first port of call should be your web hosting support desk. Most good web hosts have a priority support channel you can use if your website is unavailable, which it will be if the error establishing a database connection message is displayed. But whatever your level of service, get in touch with your web host help desk via the most responsive method, which is usually live chat or telephone.<\/p>","content":[{"type":"text","data":"Although in many cases, you can fix this problem yourself, your first port of call should be your web hosting support desk. Most good web hosts have a priority support channel you can use if your website is unavailable, which it will be if the error establishing a database connection message is displayed. But whatever your level of service, get in touch with your web host help desk via the most responsive method, which is usually live chat or telephone."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>If you want to try and fix the problem yourself, the tips below should help you to solve this issue.<\/p>","content":[{"type":"text","data":"If you want to try and fix the problem yourself, the tips below should help you to solve this issue."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\" id=\"don-t-forget-to-check-your-backups\">Don\u2019t Forget to Check Your Backups<\/h3>","content":"No olvide comprobar sus copias de seguridad","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>Before you start trying to fix this issue, make sure you have a working backup of your WordPress website and its database. If you\u2019ve been using one of <a href=\"https:\/\/memberpress.com\/best-backup-plugins-for-your-wordpress-membership-site\/\">our recommended WordPress backup solutions<\/a>, then there\u2019s a good chance you\u2019ll already have an archive of your website to fall back on should something go wrong, or if you\u2019re unable to fix the database connection error. Your backup strategy should include testing your backups to ensure you\u2019re able to restore them when they\u2019re needed.<\/p>","content":[{"type":"text","data":"Before you start trying to fix this issue, make sure you have a working backup of your WordPress website and its database. If you\u2019ve been using one of <a href=\"https:\/\/memberpress.com\/best-backup-plugins-for-your-wordpress-membership-site\/\">our recommended WordPress backup solutions<\/a>, then there\u2019s a good chance you\u2019ll already have an archive of your website to fall back on should something go wrong, or if you\u2019re unable to fix the database connection error. Your backup strategy should include testing your backups to ensure you\u2019re able to restore them when they\u2019re needed."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>If you haven\u2019t been backing up your WordPress website, then you could try contacting your web host to see if they\u2019ve been taking backups of your site on your behalf.<\/p>","content":[{"type":"text","data":"If you haven\u2019t been backing up your WordPress website, then you could try contacting your web host to see if they\u2019ve been taking backups of your site on your behalf."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>If there aren\u2019t any recent backups of your website, you could still be able to take one. While you won\u2019t be able to log in to the WordPress Dashboard to create a backup when you\u2019re seeing the database connection error message, you could create a backup at the server level, using the tools provided by your web host. These tools can often be found in the cPanel. Again, contact your web host if you\u2019re unsure about how to create a backup outside of WordPress.<\/p>","content":[{"type":"text","data":"If there aren\u2019t any recent backups of your website, you could still be able to take one. While you won\u2019t be able to log in to the WordPress Dashboard to create a backup when you\u2019re seeing the database connection error message, you could create a backup at the server level, using the tools provided by your web host. These tools can often be found in the cPanel. Again, contact your web host if you\u2019re unsure about how to create a backup outside of WordPress."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Any backups created after the database connection error has occurred will still contain the error, but at least if you make any mistakes while trying to fix the problem, you\u2019ll be able to roll back to when you created the backup and try again.<\/p>","content":[{"type":"text","data":"Any backups created after the database connection error has occurred will still contain the error, but at least if you make any mistakes while trying to fix the problem, you\u2019ll be able to roll back to when you created the backup and try again."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\" id=\"fixing-the-wordpress-database-connection-error\">Fixing the WordPress Database Connection Error<\/h3>","content":"Solucionar el error de conexi\u00f3n a la base de datos de WordPress","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>So, now that you have your backup files somewhere safe and accessible, here are some of the ways it might be possible to fix the error establishing a database connection in WordPress issue.<\/p>","content":[{"type":"text","data":"So, now that you have your backup files somewhere safe and accessible, here are some of the ways it might be possible to fix the error establishing a database connection in WordPress issue."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\" id=\"incorrect-database-details\">Incorrect Database Details<\/h3>","content":"Detalles incorrectos de la base de datos","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>As mentioned earlier, if the details, such as the database name, username, and password, in the wp-config.php file don\u2019t match the actual details of your database, WordPress won\u2019t be able to connect to the database.<\/p>","content":[{"type":"text","data":"As mentioned earlier, if the details, such as the database name, username, and password, in the wp-config.php file don\u2019t match the actual details of your database, WordPress won\u2019t be able to connect to the database."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>So to check if this mismatch is the cause of the error, you\u2019ll need to locate and open your wp-config.php file and check those details yourself. The wp-config.php file can be found in the root directory of your website on the server where it\u2019s hosted. To access that area, you\u2019ll need to log in to the server via FTP or use an online file manager to access the file.<\/p>","content":[{"type":"text","data":"So to check if this mismatch is the cause of the error, you\u2019ll need to locate and open your wp-config.php file and check those details yourself. The wp-config.php file can be found in the root directory of your website on the server where it\u2019s hosted. To access that area, you\u2019ll need to log in to the server via FTP or use an online file manager to access the file."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager.png\" alt=\"File Manager\" class=\"wp-image-18310\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager.png","data":{"alt":"File Manager","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-File-Manager.png"},"style":{"width":1600,"height":892,"align":"left","parent_style":{}}},{"type":"core\/paragraph","render":"<p>If you\u2019re not sure how to do this, you\u2019ll need to find the documentation provided by your host, or contact their support staff.<\/p>","content":[{"type":"text","data":"If you\u2019re not sure how to do this, you\u2019ll need to find the documentation provided by your host, or contact their support staff."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP.png\" alt=\"FTP Server\" class=\"wp-image-18311\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP.png","data":{"alt":"FTP Server","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-FTP.png"},"style":{"width":1400,"height":832,"align":"left","parent_style":{}}},{"type":"core\/paragraph","render":"<p>Once you\u2019ve found the file, be sure to create a backup of it before making any changes. Once that\u2019s done, open the file for editing, by either downloading it from the server or through the file manager interface.<\/p>","content":[{"type":"text","data":"Once you\u2019ve found the file, be sure to create a backup of it before making any changes. Once that\u2019s done, open the file for editing, by either downloading it from the server or through the file manager interface."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>As the image below shows, the lines you\u2019re looking for start with \/\/ ** MySQL settings - You can get this info from your web host ** \/\/<\/p>","content":[{"type":"text","data":"As the image below shows, the lines you\u2019re looking for start with \/\/ ** MySQL settings - You can get this info from your web host ** \/\/"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing.png\" alt=\"MySQL WP-Config.php entry\" class=\"wp-image-18312\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing.png","data":{"alt":"MySQL WP-Config.php entry","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-Editing.png"},"style":{"width":1260,"height":442,"align":"left","parent_style":{}}},{"type":"core\/paragraph","render":"<p>In that section of the wp-config.php file, you can see the following details:<\/p>","content":[{"type":"text","data":"In that section of the wp-config.php file, you can see the following details:"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/list","render":"<ul class=\"wp-block-list\"><li>The name of the database: DB_NAME<\/li><li>The database username: DB_USER<\/li><li>The database password: DB_PASSWORD<\/li><li>The database hostname: DB_HOST<\/li><\/ul>","content":"<ul class=\"wp-block-list\"><li>El nombre de la base de datos: DB_NAME<\/li><li>El nombre de usuario de la base de datos: DB_USER<\/li><li>La contrase\u00f1a de la base de datos: DB_PASSWORD<\/li><li>El nombre de host de la base de datos: DB_HOST<\/li><\/ul>","data":{"listType":"unordered"},"style":{"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Now you\u2019ll need to check that those details match the details for the database. To do so, you\u2019ll need to access the database. Your options here will be defined by your web host. But one popular way to access the database is through your web hosting control panel, such as via the phpMyAdmin tool found in the cPanel interface.<\/p>","content":[{"type":"text","data":"Now you\u2019ll need to check that those details match the details for the database. To do so, you\u2019ll need to access the database. Your options here will be defined by your web host. But one popular way to access the database is through your web hosting control panel, such as via the phpMyAdmin tool found in the cPanel interface."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools.png\" alt=\"cPanel Database tools\" class=\"wp-image-18313\"\/><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools.png","data":{"alt":"cPanel Database tools","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/Database-Error-cPanel-Database-Tools.png"},"style":{"width":1550,"height":313,"align":"left","parent_style":{}}},{"type":"core\/paragraph","render":"<p>Once you\u2019ve launched phpMyAdmin to access the database, you need to confirm the details from the wp-config.php file that we just covered. This is perhaps the most difficult part of the process so it\u2019s best to refer to <a href=\"https:\/\/kinsta.com\/blog\/error-establishing-a-database-connection\/\">this guide on the Kinsta blog<\/a> that covers how to check the credentials of your WordPress database to see if they match the details in your wp-config.php file.<\/p>","content":[{"type":"text","data":"Once you\u2019ve launched phpMyAdmin to access the database, you need to confirm the details from the wp-config.php file that we just covered. This is perhaps the most difficult part of the process so it\u2019s best to refer to <a href=\"https:\/\/kinsta.com\/blog\/error-establishing-a-database-connection\/\">this guide on the Kinsta blog<\/a> that covers how to check the credentials of your WordPress database to see if they match the details in your wp-config.php file."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>If at this point you\u2019d rather seek support from your web host than proceed on your own, you can send the help desk staff the database details from your wp-config.php file to help them get started.<\/p>","content":[{"type":"text","data":"If at this point you\u2019d rather seek support from your web host than proceed on your own, you can send the help desk staff the database details from your wp-config.php file to help them get started."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\" id=\"overloaded-database-server\">Overloaded Database Server<\/h3>","content":"Servidor de base de datos sobrecargado","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>If the cause of your database connection error is an overloaded server, then there\u2019s a good chance the problem will resolve itself once the burden on the server has decreased.<\/p>","content":[{"type":"text","data":"If the cause of your database connection error is an overloaded server, then there\u2019s a good chance the problem will resolve itself once the burden on the server has decreased."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Unfortunately, there\u2019s no quick and easy way to determine if this is the cause of the error. While your Google Analytics data could reveal that your website is experiencing a surge in traffic, it could be one of the other websites hosted on the same server that is causing the overload.<\/p>","content":[{"type":"text","data":"Unfortunately, there\u2019s no quick and easy way to determine if this is the cause of the error. While your Google Analytics data could reveal that your website is experiencing a surge in traffic, it could be one of the other websites hosted on the same server that is causing the overload."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>If you contact the support staff of your web host, they should be able to tell you if this is the cause of your issue.<\/p>","content":[{"type":"text","data":"If you contact the support staff of your web host, they should be able to tell you if this is the cause of your issue."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>If an overloaded server is causing downtime for your website, then it might be time to consider changing your hosting plan. One option would be upgrading to a higher plan with your current provider, or <a href=\"https:\/\/memberpress.com\/how-to-choose-the-best-web-hosting-for-your-membership-site\/\">switching to a better web host<\/a>.<\/p>","content":[{"type":"text","data":"If an overloaded server is causing downtime for your website, then it might be time to consider changing your hosting plan. One option would be upgrading to a higher plan with your current provider, or <a href=\"https:\/\/memberpress.com\/how-to-choose-the-best-web-hosting-for-your-membership-site\/\">switching to a better web host<\/a>."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h2 class=\"wp-block-heading\" id=\"final-thoughts\">Final Thoughts<\/h2>","content":"Reflexiones finales","data":[],"style":{"align":"left","parent_style":{},"header":"h2","fontSize":"27px"}},{"type":"core\/paragraph","render":"<p>Hopefully, this article has shed some light on the infamous error establishing a database connection problem that can affect WordPress websites from time to time.<\/p>","content":[{"type":"text","data":"Hopefully, this article has shed some light on the infamous error establishing a database connection problem that can affect WordPress websites from time to time."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>In most cases, your best option will be to contact your web host and instruct them to resolve the issue. However, the information in this article should have given you a better idea of what\u2019s caused the problem and some of the ways it can be fixed.&nbsp;<\/p>","content":[{"type":"text","data":"In most cases, your best option will be to contact your web host and instruct them to resolve the issue. However, the information in this article should have given you a better idea of what\u2019s caused the problem and some of the ways it can be fixed.&nbsp;"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Fixing your website yourself can be rewarding. But in most cases, its best left to the professionals.<\/p>","content":[{"type":"text","data":"Fixing your website yourself can be rewarding. But in most cases, its best left to the professionals."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p><em>Has your website ever displayed the error establishing a database connection message? If so, what did you do to resolve it? Please let us know in the comments below. <\/em><\/p>","content":[{"type":"text","data":"<em>Has your website ever displayed the error establishing a database connection message? If so, what did you do to resolve it? Please let us know in the comments below. <\/em>"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}}],"app_access":{"can_access":true,"restrict_message":null},"_links":{"self":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/posts\/18307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/users\/2122"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/comments?post=18307"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/posts\/18307\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/media\/33261"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/media?parent=18307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/categories?post=18307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/tags?post=18307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}