{"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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/","title":{"rendered":"Comment r\u00e9soudre le probl\u00e8me \"Error Establishing a Database Connection\" (erreur dans l'\u00e9tablissement de la connexion \u00e0 la base de donn\u00e9es) dans WordPress"},"content":{"rendered":"<p>Dans cet article, nous abordons le message courant \"error establish a database connection in WordPress\" qui peut parfois s'afficher lorsqu'un site web est indisponible.<\/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-69df2695b7ed8\" class=\"ez-toc-cssicon-toggle-label\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">CE QU'IL Y A \u00c0 L'INT\u00c9RIEUR<\/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-69df2695b7ed8\"  \/><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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#What_Causes_a_WordPress_Database_Connection_Error\" >Quelles sont les causes d'une erreur de connexion \u00e0 la base de donn\u00e9es 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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Incorrect_Database_Details\" >D\u00e9tails de la base de donn\u00e9es incorrects<\/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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Corrupted_Database\" >Base de donn\u00e9es corrompue<\/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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Overloaded_Database_Server\" >Serveur de base de donn\u00e9es surcharg\u00e9<\/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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#How_to_Fix_a_WordPress_Database_Connection_Error\" >Comment corriger une erreur de connexion \u00e0 la base de donn\u00e9es 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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Dont_Forget_to_Check_Your_Backups\" >N'oubliez pas de v\u00e9rifier vos sauvegardes<\/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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Fixing_the_WordPress_Database_Connection_Error\" >Corriger l'erreur de connexion \u00e0 la base de donn\u00e9es 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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Incorrect_Database_Details-2\" >D\u00e9tails de la base de donn\u00e9es incorrects<\/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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Overloaded_Database_Server-2\" >Serveur de base de donn\u00e9es surcharg\u00e9<\/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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#Final_Thoughts\" >R\u00e9flexions finales<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<p>Tout d'abord, nous examinerons certaines des causes de cette erreur, avant d'explorer les diff\u00e9rentes fa\u00e7ons de la corriger.<\/p>\n\n\n\n<p>Bien que cet article n'entre pas dans les d\u00e9tails techniques des causes de ce probl\u00e8me et des moyens de le r\u00e9soudre, il devrait vous donner une bonne vue d'ensemble de ce probl\u00e8me pour vous aider \u00e0 mieux le comprendre et \u00e0 en parler avec plus d'assurance.<\/p>\n\n\n\n<p>C'est dans cet esprit que nous allons commencer...<\/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>Quelles sont les causes d'une erreur de connexion \u00e0 la base de donn\u00e9es de WordPress ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Contrairement \u00e0 certaines erreurs que vous pouvez voir sur un site web ou sur votre ordinateur, comme l'erreur 404 ou un avertissement indiquant qu'une op\u00e9ration ill\u00e9gale a \u00e9t\u00e9 effectu\u00e9e, l'erreur que nous examinons aujourd'hui a au moins un nom ou un message de sortie explicite.<\/p>\n\n\n\n<p>Ainsi, lorsque vous voyez le message Error Establishing a Database Connection (erreur dans l'\u00e9tablissement de la connexion \u00e0 la base de donn\u00e9es) lorsque vous essayez d'acc\u00e9der \u00e0 un site web WordPress, cela signifie r\u00e9ellement que le logiciel WordPress ne peut pas se connecter \u00e0 sa base de donn\u00e9es sous-jacente.<\/p>\n\n\n\n<p>Comme c'est dans cette base de donn\u00e9es que sont stock\u00e9s tous les contenus, param\u00e8tres, fichiers et autres du site WordPress, c'est un tr\u00e8s gros probl\u00e8me si le site ne peut pas se connecter. Cependant, m\u00eame s'il s'agit d'un probl\u00e8me s\u00e9rieux, cela ne signifie pas que votre site est irr\u00e9m\u00e9diablement cass\u00e9. Comme nous le verrons dans la section solution de ce guide pour comprendre cette erreur de base de donn\u00e9es WordPress, il est possible d'y rem\u00e9dier.<\/p>\n\n\n\n<p>Malheureusement, les causes de ce probl\u00e8me varient et il n'y a pas d'explication unique au fait que votre site web WordPress ne puisse pas se connecter \u00e0 sa base de donn\u00e9es. De m\u00eame, comme il n'y a pas de cause unique \u00e0 ce probl\u00e8me, il n'y a pas non plus de solution unique \u00e0 l'erreur de base de donn\u00e9es de WordPress.<\/p>\n\n\n\n<p>Cependant, il existe des causes courantes d'erreur de connexion \u00e0 la base de donn\u00e9es de WordPress que nous allons rapidement aborder ici avant de partager quelques conseils sur la fa\u00e7on dont vous pouvez r\u00e9soudre ce probl\u00e8me.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"incorrect-database-details\"><span class=\"ez-toc-section\" id=\"Incorrect_Database_Details\"><\/span>D\u00e9tails de la base de donn\u00e9es incorrects<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Une cause fr\u00e9quente de cette erreur est que les d\u00e9tails utilis\u00e9s par WordPress pour se connecter \u00e0 la base de donn\u00e9es sont incorrects, y compris le nom de la base de donn\u00e9es, le nom d'utilisateur et le mot de passe. <a href=\"https:\/\/memberpress.com\/go\/lastpass\/\" title=\"Last Pass Lien d&#039;affiliation\" class=\"pretty-link-keyword\"rel=\"nofollow \" target=\"_blank\">mot de passe<\/a>.<\/p>\n\n\n\n<p>Si WordPress ne peut pas acc\u00e9der au fichier qui contient ces informations - le fichier wp-config.php - ou si le contenu de ce fichier ne correspond pas aux informations d'identification de la base de donn\u00e9es, vous obtiendrez une erreur de connexion \u00e0 la base de donn\u00e9es.<\/p>\n\n\n\n<p>Parmi les causes pouvant entra\u00eener ce probl\u00e8me, citons les modifications du nom d'utilisateur ou du mot de passe de la base de donn\u00e9es qui n'ont pas \u00e9t\u00e9 r\u00e9percut\u00e9es dans le fichier wp-config.php, ou le renommage, la suppression ou la corruption du fichier wp-config.php lui-m\u00eame.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"corrupted-database\"><span class=\"ez-toc-section\" id=\"Corrupted_Database\"><\/span>Base de donn\u00e9es corrompue<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Une autre cause de cette erreur pourrait \u00eatre le fait que la base de donn\u00e9es a \u00e9t\u00e9 corrompue ou endommag\u00e9e d'une mani\u00e8re ou d'une autre. Dans ce cas, WordPress pourrait ne pas \u00eatre en mesure de s'y connecter, ce qui entra\u00eenerait l'affichage du message d'erreur \"\u00c9tablissement d'une connexion \u00e0 la base de donn\u00e9es\" au lieu du site web et de son contenu.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"overloaded-database-server\"><span class=\"ez-toc-section\" id=\"Overloaded_Database_Server\"><\/span>Serveur de base de donn\u00e9es surcharg\u00e9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Une autre cause de ce probl\u00e8me peut \u00eatre la surcharge du serveur h\u00e9bergeant la base de donn\u00e9es. Dans ce cas, les fichiers du serveur peuvent devenir indisponibles, ce qui provoque une erreur de connexion.<\/p>\n\n\n\n<p>Cette cause est particuli\u00e8rement fr\u00e9quente si vous utilisez un h\u00e9bergement mutualis\u00e9 bon march\u00e9 pour votre site web WordPress. Avec ce type d'h\u00e9bergement, plusieurs sites web et leurs bases de donn\u00e9es sont stock\u00e9s sur le m\u00eame serveur, partageant les m\u00eames ressources et augmentant les risques de surcharge. Il se peut donc que ce ne soit pas votre site web qui pose probl\u00e8me, mais plut\u00f4t l'un de vos voisins sur le m\u00eame serveur.<\/p>\n\n\n\n<p>La bonne nouvelle, c'est que si c'est le cas, il y a une chance que l'erreur se r\u00e9solve d'elle-m\u00eame, une fois que la charge du serveur aura diminu\u00e9.<\/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>Comment corriger une erreur de connexion \u00e0 la base de donn\u00e9es de WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>M\u00eame si le fait qu'un site WordPress ne puisse pas se connecter \u00e0 sa base de donn\u00e9es est un probl\u00e8me important, principalement parce que le site devient inaccessible, heureusement, il s'agit souvent d'un probl\u00e8me qui peut \u00eatre r\u00e9solu.<\/p>\n\n\n\n<p>Bien que, dans de nombreux cas, vous puissiez r\u00e9gler ce probl\u00e8me vous-m\u00eame, vous devez d'abord vous adresser \u00e0 votre <a href=\"https:\/\/memberpress.com\/go\/wpe\/pricing\/\" title=\"Lien d&#039;affiliation WPengine\" class=\"pretty-link-keyword\"rel=\"nofollow \" target=\"_blank\">h\u00e9bergement web<\/a> le service d'assistance. La plupart des bons h\u00e9bergeurs disposent d'un canal d'assistance prioritaire que vous pouvez utiliser si votre site web est indisponible, ce qui sera le cas si le message d'erreur d'\u00e9tablissement d'une connexion \u00e0 la base de donn\u00e9es s'affiche. Mais quel que soit votre niveau de service, contactez le service d'assistance de votre h\u00e9bergeur par la m\u00e9thode la plus r\u00e9active, qui est g\u00e9n\u00e9ralement la suivante <a href=\"https:\/\/memberpress.com\/go\/livechat\/\" title=\"Lien d&#039;affiliation Livechat\" class=\"pretty-link-keyword\"rel=\"nofollow \" target=\"_blank\">chat en direct<\/a> ou par t\u00e9l\u00e9phone.<\/p>\n\n\n\n<p>Si vous souhaitez essayer de r\u00e9soudre le probl\u00e8me vous-m\u00eame, les conseils ci-dessous devraient vous aider \u00e0 r\u00e9soudre ce probl\u00e8me.<\/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>N'oubliez pas de v\u00e9rifier vos sauvegardes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Avant de commencer \u00e0 essayer de r\u00e9soudre ce probl\u00e8me, assurez-vous que vous disposez d'une sauvegarde fonctionnelle de votre site web WordPress et de sa base de donn\u00e9es. Si vous avez utilis\u00e9 l'un des logiciels <a href=\"https:\/\/memberpress.com\/fr\/best-backup-plugins-for-your-wordpress-membership-site\/\">nos solutions de sauvegarde WordPress recommand\u00e9es<\/a>Dans ce cas, il y a de fortes chances que vous disposiez d\u00e9j\u00e0 d'une archive de votre site web sur laquelle vous pourrez vous appuyer en cas de probl\u00e8me ou si vous ne parvenez pas \u00e0 corriger l'erreur de connexion \u00e0 la base de donn\u00e9es. Votre strat\u00e9gie de sauvegarde doit inclure le test de vos sauvegardes afin de vous assurer que vous \u00eates en mesure de les restaurer en cas de besoin.<\/p>\n\n\n\n<p>Si vous n'avez pas sauvegard\u00e9 votre site web WordPress, vous pouvez essayer de contacter votre h\u00e9bergeur pour savoir s'il a effectu\u00e9 des sauvegardes de votre site en votre nom.<\/p>\n\n\n\n<p>S'il n'y a pas de sauvegardes r\u00e9centes de votre site web, vous pouvez toujours en faire une. Bien que vous ne puissiez pas vous connecter au tableau de bord de WordPress pour cr\u00e9er une sauvegarde lorsque vous voyez le message d'erreur de connexion \u00e0 la base de donn\u00e9es, vous pouvez cr\u00e9er une sauvegarde au niveau du serveur, \u00e0 l'aide des outils fournis par votre h\u00e9bergeur. Ces outils se trouvent souvent dans le cPanel. L\u00e0 encore, contactez votre h\u00e9bergeur si vous ne savez pas comment cr\u00e9er une sauvegarde en dehors de WordPress.<\/p>\n\n\n\n<p>Toutes les sauvegardes cr\u00e9\u00e9es apr\u00e8s l'apparition de l'erreur de connexion \u00e0 la base de donn\u00e9es contiendront toujours l'erreur, mais au moins, si vous faites des erreurs en essayant de r\u00e9soudre le probl\u00e8me, vous pourrez revenir au moment o\u00f9 vous avez cr\u00e9\u00e9 la sauvegarde et r\u00e9essayer.<\/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>Corriger l'erreur de connexion \u00e0 la base de donn\u00e9es de WordPress<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Maintenant que vous avez plac\u00e9 vos fichiers de sauvegarde dans un endroit s\u00fbr et accessible, voici quelques-unes des solutions possibles pour r\u00e9soudre le probl\u00e8me de l'erreur d'\u00e9tablissement d'une connexion \u00e0 la base de donn\u00e9es dans 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>D\u00e9tails de la base de donn\u00e9es incorrects<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Comme indiqu\u00e9 pr\u00e9c\u00e9demment, si les d\u00e9tails, tels que le nom de la base de donn\u00e9es, le nom d'utilisateur et le mot de passe, dans le fichier wp-config.php ne correspondent pas aux d\u00e9tails r\u00e9els de votre base de donn\u00e9es, WordPress ne sera pas en mesure de se connecter \u00e0 la base de donn\u00e9es.<\/p>\n\n\n\n<p>Pour v\u00e9rifier si cette incompatibilit\u00e9 est \u00e0 l'origine de l'erreur, vous devez localiser et ouvrir votre fichier wp-config.php et v\u00e9rifier ces d\u00e9tails vous-m\u00eame. Le fichier wp-config.php se trouve dans le r\u00e9pertoire racine de votre site web sur le serveur o\u00f9 il est h\u00e9berg\u00e9. Pour acc\u00e9der \u00e0 cette zone, vous devez vous connecter au serveur via FTP ou utiliser un gestionnaire de fichiers en ligne pour acc\u00e9der au fichier.<\/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=\"Gestionnaire de fichiers\" 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 vous ne savez pas comment proc\u00e9der, vous devrez consulter la documentation fournie par votre h\u00e9bergeur ou contacter son service d'assistance.<\/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=\"Serveur 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>Une fois que vous avez trouv\u00e9 le fichier, assurez-vous d'en cr\u00e9er une copie de sauvegarde avant d'y apporter des modifications. Une fois cela fait, ouvrez le fichier pour le modifier, soit en le t\u00e9l\u00e9chargeant depuis le serveur, soit en utilisant l'interface du gestionnaire de fichiers.<\/p>\n\n\n\n<p>Comme le montre l'image ci-dessous, les lignes que vous recherchez commencent par \/\/ ** Param\u00e8tres MySQL \u2013 Vous pouvez obtenir ces informations aupr\u00e8s de votre h\u00e9bergeur 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=\"Entr\u00e9e MySQL WP-Config.php\" 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>Dans cette section du fichier wp-config.php, vous pouvez voir les d\u00e9tails suivants :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Le nom de la base de donn\u00e9es : DB_NAME<\/li><li>Le nom d'utilisateur de la base de donn\u00e9es : DB_USER<\/li><li>Le mot de passe de la base de donn\u00e9es : DB_PASSWORD<\/li><li>Le nom d'h\u00f4te de la base de donn\u00e9es : DB_HOST<\/li><\/ul>\n\n\n\n<p>Vous devez maintenant v\u00e9rifier que ces d\u00e9tails correspondent \u00e0 ceux de la base de donn\u00e9es. Pour ce faire, vous devez acc\u00e9der \u00e0 la base de donn\u00e9es. Les options dont vous disposez \u00e0 cet \u00e9gard sont d\u00e9finies par votre h\u00e9bergeur. Mais l'un des moyens les plus courants d'acc\u00e9der \u00e0 la base de donn\u00e9es est de passer par le panneau de contr\u00f4le de votre h\u00e9bergement web, par exemple via l'outil phpMyAdmin qui se trouve dans l'interface 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=\"Outils de base de donn\u00e9es 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>Une fois que vous avez lanc\u00e9 phpMyAdmin pour acc\u00e9der \u00e0 la base de donn\u00e9es, vous devez confirmer les d\u00e9tails du fichier wp-config.php que nous venons de voir. C'est peut-\u00eatre la partie la plus difficile du processus, il est donc pr\u00e9f\u00e9rable de se r\u00e9f\u00e9rer \u00e0 <a href=\"https:\/\/kinsta.com\/blog\/error-establishing-a-database-connection\/\">ce guide sur le blog Kinsta<\/a> qui explique comment v\u00e9rifier les identifiants de votre base de donn\u00e9es WordPress pour voir s'ils correspondent aux d\u00e9tails de votre fichier wp-config.php.<\/p>\n\n\n\n<p>Si, \u00e0 ce stade, vous pr\u00e9f\u00e9rez demander de l'aide \u00e0 votre h\u00e9bergeur plut\u00f4t que de proc\u00e9der par vous-m\u00eame, vous pouvez envoyer au service d'assistance les d\u00e9tails de la base de donn\u00e9es de votre fichier wp-config.php pour l'aider \u00e0 d\u00e9marrer.<\/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>Serveur de base de donn\u00e9es surcharg\u00e9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Si la cause de votre erreur de connexion \u00e0 la base de donn\u00e9es est un serveur surcharg\u00e9, il y a de fortes chances que le probl\u00e8me se r\u00e9solve de lui-m\u00eame une fois que la charge du serveur aura diminu\u00e9.<\/p>\n\n\n\n<p>Malheureusement, il n'y a pas de moyen rapide et facile de d\u00e9terminer si c'est la cause de l'erreur. Bien que vos donn\u00e9es Google Analytics puissent r\u00e9v\u00e9ler que votre site web conna\u00eet une hausse de trafic, il se peut que ce soit l'un des autres sites web h\u00e9berg\u00e9s sur le m\u00eame serveur qui soit \u00e0 l'origine de la surcharge.<\/p>\n\n\n\n<p>Si vous contactez l'\u00e9quipe d'assistance de votre h\u00e9bergeur, elle devrait \u00eatre en mesure de vous dire si c'est la cause de votre probl\u00e8me.<\/p>\n\n\n\n<p>Si un serveur surcharg\u00e9 provoque des temps d'arr\u00eat pour votre site web, il est peut-\u00eatre temps d'envisager de changer de plan d'h\u00e9bergement. Une option serait de passer \u00e0 un plan plus \u00e9lev\u00e9 avec votre fournisseur actuel, ou <a href=\"https:\/\/memberpress.com\/fr\/how-to-choose-the-best-web-hosting-for-your-membership-site\/\">passer \u00e0 un meilleur h\u00e9bergeur<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"final-thoughts\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>R\u00e9flexions finales<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Nous esp\u00e9rons que cet article a permis de faire la lumi\u00e8re sur le fameux probl\u00e8me d'erreur d'\u00e9tablissement de connexion \u00e0 la base de donn\u00e9es qui peut affecter les sites web WordPress de temps \u00e0 autre.<\/p>\n\n\n\n<p>Dans la plupart des cas, la meilleure solution consiste \u00e0 contacter votre h\u00e9bergeur et \u00e0 lui demander de r\u00e9soudre le probl\u00e8me. Toutefois, les informations contenues dans cet article devraient vous donner une meilleure id\u00e9e de la cause du probl\u00e8me et des moyens de le r\u00e9soudre.\u00a0<\/p>\n\n\n\n<p>Il peut \u00eatre gratifiant de r\u00e9parer soi-m\u00eame son site web. Mais dans la plupart des cas, il est pr\u00e9f\u00e9rable de s'en remettre \u00e0 des professionnels.<\/p>\n\n\n\n<p><em>Votre site web a-t-il d\u00e9j\u00e0 affich\u00e9 le message d'erreur \"\u00c9tablir une connexion \u00e0 la base de donn\u00e9es\" ? Si oui, qu'avez-vous fait pour le r\u00e9soudre ? N'h\u00e9sitez pas \u00e0 nous en faire part dans les commentaires ci-dessous. <\/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\/fr\/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=\"fr_FR\" \/>\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\/fr\/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\\\/fr\\\/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\\\/fr\\\/blog\\\/author\\\/jfylan\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#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\":\"fr-FR\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/category\\\/advice\\\/#listItem\",\"name\":\"Advice\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/category\\\/advice\\\/#listItem\",\"position\":2,\"name\":\"Advice\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/category\\\/advice\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/blog\\\/category\\\/advice\\\/#listItem\",\"name\":\"Advice\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/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\\\/fr\\\/blog\\\/author\\\/jfylan\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\":\"fr-FR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/jfylan\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/jfylan\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/wp-trouble.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/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\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"fr-FR\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#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":"Erreur lors de l'\u00e9tablissement d'une connexion \u00e0 une base de donn\u00e9es dans WordPress","description":"En savoir plus sur le probl\u00e8me Error Establishing a Database Connection dans WordPress et comment il peut \u00eatre diagnostiqu\u00e9 et corrig\u00e9.","canonical_url":"https:\/\/memberpress.com\/fr\/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\/fr\/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\/fr\/blog\/author\/jfylan\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/fr\/#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":"fr-FR","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/fr\/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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/fr","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/blog\/category\/advice\/#listItem","name":"Advice"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/blog\/category\/advice\/#listItem","position":2,"name":"Advice","item":"https:\/\/memberpress.com\/fr\/blog\/category\/advice\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/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\/fr#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/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\/fr\/blog\/category\/advice\/#listItem","name":"Advice"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/fr\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/fr\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/fr\/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\/fr\/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\/fr\/blog\/author\/jfylan\/#author","url":"https:\/\/memberpress.com\/fr\/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\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#webpage","url":"https:\/\/memberpress.com\/fr\/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":"fr-FR","isPartOf":{"@id":"https:\/\/memberpress.com\/fr\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/fr\/blog\/error-establishing-a-database-connection-in-wordpress-what-it-means-how-to-fix-it\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/fr\/blog\/author\/jfylan\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/fr\/blog\/author\/jfylan\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/06\/wp-trouble.jpg","@id":"https:\/\/memberpress.com\/fr\/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\/fr\/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\/fr\/#website","url":"https:\/\/memberpress.com\/fr\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"fr-FR","publisher":{"@id":"https:\/\/memberpress.com\/fr\/#organization"}}]},"og:locale":"fr_FR","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\/fr\/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":"Erreur lors de l'\u00e9tablissement d'une connexion \u00e0 une base de donn\u00e9es dans WordPress","description":"En savoir plus sur le probl\u00e8me Error Establishing a Database Connection dans WordPress et comment il peut \u00eatre diagnostiqu\u00e9 et corrig\u00e9.","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\/fr\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/fr\/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\/fr"},{"label":"Advice","link":"https:\/\/memberpress.com\/fr\/blog\/category\/advice\/"},{"label":"How to Fix the \u201cError Establishing a Database Connection\u201d in WordPress","link":"https:\/\/memberpress.com\/fr\/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":"Quelles sont les causes d'une erreur de connexion \u00e0 la base de donn\u00e9es 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":"D\u00e9tails de la base de donn\u00e9es incorrects","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 donn\u00e9es corrompue","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":"Serveur de base de donn\u00e9es surcharg\u00e9","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":"Comment corriger une erreur de connexion \u00e0 la base de donn\u00e9es 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":"N'oubliez pas de v\u00e9rifier vos sauvegardes","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":"Corriger l'erreur de connexion \u00e0 la base de donn\u00e9es 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":"D\u00e9tails de la base de donn\u00e9es incorrects","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>Le nom de la base de donn\u00e9es : DB_NAME<\/li><li>Le nom d'utilisateur de la base de donn\u00e9es : DB_USER<\/li><li>Le mot de passe de la base de donn\u00e9es : DB_PASSWORD<\/li><li>Le nom d'h\u00f4te de la base de donn\u00e9es : 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":"Serveur de base de donn\u00e9es surcharg\u00e9","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":"R\u00e9flexions 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\/fr\/wp-json\/wp\/v2\/posts\/18307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/users\/2122"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/comments?post=18307"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/posts\/18307\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/media\/33261"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/media?parent=18307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/categories?post=18307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/tags?post=18307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}