{"id":252,"date":"2023-10-06T08:39:39","date_gmt":"2023-10-06T08:39:39","guid":{"rendered":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?p=252"},"modified":"2023-10-09T12:20:12","modified_gmt":"2023-10-09T12:20:12","slug":"Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error","status":"publish","type":"post","link":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html","title":{"rendered":"Solutions to Fix Establishing WordPress Database Connection Error"},"content":{"rendered":"<div class=\"kb-article-content\">\n<p><span style=\"font-weight: 400;\">The database connection error blocks your access to the WordPress dashboard. You try to load a page, but all you see is a white box with a mysterious error message. This error brings down your entire website and has to be rectified immediately. The more it\u2019s delayed, the more it will negatively impact your website traffic, sales, and user experience.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">How can you fix a database error when you can\u2019t even open the admin dashboard to see what\u2019s wrong?<\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/68\/move-an-email-account-from-one-cPanel-server-to-another.html\"><strong>move an email account from one cPanel server to another<\/strong><\/a><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h2><strong>What is the Error Establishing a Database Connection?<\/strong><\/h2>\n<p><strong><span style=\"font-weight: 400;\">This is a common error; it doesn\u2019t mean your content is lost. It is fixable. The error establishing a database connection means that for some reason or another, the PHP code could not connect to your database to retrieve the information it needs to build that page fully. <\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400;\">When a page request is made, PHP pulls the page content from the database and displays it in your browser. That will include all content, plugin information, images, videos, audio, and almost everything you see on the page. Like how the database gets corrupted, your core WordPress files can also get corrupted.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s why the error is always shown on a blank page because there is no information about your site as it is not connected to your database.<\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><strong>Also Read:<\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/223\/Is-Your-Cpanel-Not-Receiving-Emails-What-to-Do.html\"><strong> Is Your Cpanel Not Receiving Emails-What to Do?<\/strong><\/a><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h2><strong>Why did this Error Occured?<\/strong><\/h2>\n<p><strong><span style=\"font-weight: 400;\">We need to find out what is causing the error when we try to open the WordPress site. It could be because of many reasons, as errors in database connectivity may have several different underlying causes. <\/span><\/strong><\/p>\n<p><strong><span style=\"font-weight: 400;\">For instance, it can be because of the wrong login username and password being used to access the admin panel. If your web server is not up to the sudden spike in traffic, your database could become unresponsive. Another possibility is that the database might be corrupted; the WordPress database can be corrupted by several things, like installing a faulty or incompatible plugin.<\/span><\/strong><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><strong>Also Read: <a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html\">How to upload Laravel Project on Shared Hosting With cPanel?<\/a><\/strong><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h2><strong>How to Fix Error Establishing a Database Connection<\/strong><\/h2>\n<p><strong><span style=\"font-weight: 400;\">Before we start fixing the error, we recommend you back up your website and store it on your PC. There will be a lot of manipulation of your database information, and if anything goes wrong, we\u2019ll have a way to recover the data.<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400;\">An easy way to back up your website is through WordPress plugins such as VaultPress or WP Time Capsule.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As the website has now been backed up and we have no fear of losing data, let\u2019s fix the error.<\/span><\/p>\n<h3><strong>1. Check Your Database Login Credentials<br \/>\n<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">The very first thing you should do is check whether the login credentials are correct. Incorrect login details are the most common reason for this error to occur.<\/p>\n<p><em>The wp-config.php <\/em>file stores the connection details of your WordPress site. You can find this file in the root directory of your WordPress website. It contains the Database Name, MySQL database Username, MySQL database password, and MySQL database hostname.<br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can either use an SFTP client to open the <\/span><em><span style=\"font-weight: 400;\">wp-config.php <\/span><\/em><span style=\"font-weight: 400;\">file by connecting to your website via SFTP and browsing to the root directory. Or you can open it using cPanel.<\/p>\n<p>Go to \u201c<em>File Manager\u201d <\/em>in cPanel, open it, browse to the root of your website, right-click on it, and select <em>Edit the File.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/303_select-Edit-the-File.png\" alt=\"select Edit the File\" width=\"534\" height=\"193\"><\/em><\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><em><span style=\"font-weight: 400;\">wp-config.php <\/span><\/em><span style=\"font-weight: 400;\">file will open in a window containing all the credentials. Now, you have to cross-check the credentials.<br \/>\n<\/span><\/p>\n<p><strong>To Check the Credentials<br \/>\n<\/strong><br \/>\n<strong>STEP I:<\/strong> <span style=\"font-weight: 400;\">Open <\/span><em><span style=\"font-weight: 400;\">MySQL Databases <\/span><\/em><span style=\"font-weight: 400;\">in cPanel.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/304_MySQL-Databases-in-cPanel.png\" alt=\"MySQL Databases in cPanel\" width=\"788\" height=\"204\"><\/p>\n<p><\/span><\/p>\n<p><strong>STEP II:<\/strong><span style=\"font-weight: 400;\">&nbsp; This is the database management page. The Database name and username are listed here.&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/305_database-management-page.png\" alt=\"database management page\" width=\"1067\" height=\"158\"><\/span><\/p>\n<p><span style=\"font-weight: 400;\">And below this, you can find the database users and links to change the user password.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/306_change-the-user-password.png\" alt=\"change the user password\" width=\"1086\" height=\"172\"><\/span><\/p>\n<p><strong>STEP III:<\/strong><span style=\"font-weight: 400;\"> Cross-check the Database Name, username, and password information with the <\/span><em><span style=\"font-weight: 400;\">wp-config.php<\/span><\/em><span style=\"font-weight: 400;\"> file. If the information is wrong, you can change it.<br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Now, try opening your website again; if the problem persists, something is wrong. It can also be because of a corrupt database.<br \/>\n<\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/229\/How-to-Take-Backup-of-Emails-from-cPanel.html\"><strong>How to Take Backup of Emails from cPanel<\/strong><\/a><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h3><strong>2. Repairing Corrupt Database<br \/>\n<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\"> A database can get corrupted because of the constant change in the database by new plugins and themes. If you see \u2018One or more database tables are unavailable. The database may need to be repaired on the WordPress site\u2019s dashboard, which means the database has been corrupted. This error might only be seen at the backend and see the \u2018error establishing a database connection\u2019 on the front.<br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can easily fix this error by initiating the database repair mode and adding the following to the bottom of our wp-config.php file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/307_edit-on-wp-config--file.png\" alt=\"edit on wp-config  file\" width=\"240\" height=\"24\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Now browse to \u2018<\/span><em><span style=\"font-weight: 400;\">https:\/\/yourdomain.com\/wp-admin\/maint\/repair.php\u2019 <\/span><\/em><span style=\"font-weight: 400;\">on your website. You can now see the option to repair the database or repair and optimize the database. You can choose any of the options to repair the database; we recommend choosing the repair database option since it is quicker.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/308_wp-admin-repair.png\" alt=\"wp-admin repair\" width=\"550\" height=\"291\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">An alternate way is to simply click on the \u2018Repair Database\u2019 button in the MySQL databases screen in cPanel.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/309_Repair-Database-cPanel.png\" alt=\"Repair Database cPanel\" width=\"187\" height=\"145\"><\/p>\n<p><strong>After the repair is complete, remove the code line from the PHP file&#8217;s bottom.<\/strong> <\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/241\/A-Simple-Guide-To-Connect-Your-cPanel-Email-to-Gmail.html\"><strong>&nbsp;A Simple Guide To Connect Your cPanel Email to Gmail<\/strong><\/a><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h3><strong>3. Fixing Corrupt Files<br \/>\n<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">This issue can be due to a hacker gaining access to your site or a problem with your hosting provider, or simply due to an issue while transferring files via FTP. You can easily fix this issue.<br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Simply replace the core version of your WordPress. You don\u2019t have to modify or do anything to your plugins, themes, or anything on your website; you just have to reinstall WordPress. Just download a fresh copy of WordPress from WordPress.org.<\/p>\n<p>Unzip the file on your computer and delete the wp-content folder and wp-config-sample.php file. Now upload the remaining files via SFTP to your website, overwriting the existing files.&nbsp;<br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">All the problematic files have been replaced with fresh files. Be sure to clear your browse cache after doing this.<br \/>\n<\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/249\/How-to-Create-a-PHPinfo-File-and-View-PHP-Information.html\"><strong>How to Create a PHPinfo File and View PHP Information?<\/strong><\/a><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h3><strong>4. Database Server Issues<br \/>\n<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">If the error persists, there may be a problem with the database server. In this case, you can contact your hosting provider to check if the issue is from their end.<br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The error may be due to too many concurrent connections to your database; the host limits the servers on how many connections are allowed at once. The database interactions can be minimized by utilizing a caching plugin.<br \/>\n<\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/226\/What-is-FTP-and-How-to-Create-an-FTP-Account-In-cPanel.html\"><strong>What is FTP &amp; How to Create an FTP Account In cPanel?<\/strong><\/a><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h2><strong>Conclusion<br \/>\n<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">This Error Establishing a Database Connection error is one of the most frustrating errors you can encounter with your WordPress website. Several possible root causes for this error make it difficult to identify and resolve it. Your site\u2019s data is still there; you just need to find a way to fix the connection so that WordPress can access the database again.<\/p>\n<p>We covered some of the most probable reasons behind this error and walked you through easy methods to fix it. We hope this article helped you understand the error and how it happens, and, most importantly, know that it\u2019s not as severe as it seems. <\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>&nbsp;<\/strong><\/h3>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The database connection error blocks your access to the WordPress dashboard. You try to load a page, but all you see is a white box with a mysterious error message. This error brings down your entire website and has to be rectified immediately. The more it\u2019s delayed, the more it will negatively impact your website [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-website"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Solutions to Fix Establishing WordPress Database Connection Error<\/title>\n<meta name=\"description\" content=\"Does the notification of \u201cError establishing a database connection\u201d strike a panic, don\u2019t worry; we have got you covered. Here\u2019s a method to fix this.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Solutions to Fix Establishing WordPress Database Connection Error\" \/>\n<meta property=\"og:description\" content=\"Does the notification of \u201cError establishing a database connection\u201d strike a panic, don\u2019t worry; we have got you covered. Here\u2019s a method to fix this.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-06T08:39:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-09T12:20:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/303_select-Edit-the-File.png\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9\"},\"headline\":\"Solutions to Fix Establishing WordPress Database Connection Error\",\"datePublished\":\"2023-10-06T08:39:39+00:00\",\"dateModified\":\"2023-10-09T12:20:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html\"},\"wordCount\":1241,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html\",\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html\",\"name\":\"Solutions to Fix Establishing WordPress Database Connection Error\",\"isPartOf\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"datePublished\":\"2023-10-06T08:39:39+00:00\",\"dateModified\":\"2023-10-09T12:20:12+00:00\",\"description\":\"Does the notification of \u201cError establishing a database connection\u201d strike a panic, don\u2019t worry; we have got you covered. Here\u2019s a method to fix this.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization\",\"name\":\"Host IT Smart Knowledge base\",\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":240,\"height\":80,\"caption\":\"Host IT Smart Knowledge base\"},\"image\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Solutions to Fix Establishing WordPress Database Connection Error","description":"Does the notification of \u201cError establishing a database connection\u201d strike a panic, don\u2019t worry; we have got you covered. Here\u2019s a method to fix this.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html","og_locale":"en_US","og_type":"article","og_title":"Solutions to Fix Establishing WordPress Database Connection Error","og_description":"Does the notification of \u201cError establishing a database connection\u201d strike a panic, don\u2019t worry; we have got you covered. Here\u2019s a method to fix this.","og_url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2023-10-06T08:39:39+00:00","article_modified_time":"2023-10-09T12:20:12+00:00","og_image":[{"url":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/303_select-Edit-the-File.png"}],"author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html#article","isPartOf":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html"},"author":{"name":"Admin","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9"},"headline":"Solutions to Fix Establishing WordPress Database Connection Error","datePublished":"2023-10-06T08:39:39+00:00","dateModified":"2023-10-09T12:20:12+00:00","mainEntityOfPage":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html"},"wordCount":1241,"commentCount":0,"publisher":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html","url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html","name":"Solutions to Fix Establishing WordPress Database Connection Error","isPartOf":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website"},"datePublished":"2023-10-06T08:39:39+00:00","dateModified":"2023-10-09T12:20:12+00:00","description":"Does the notification of \u201cError establishing a database connection\u201d strike a panic, don\u2019t worry; we have got you covered. Here\u2019s a method to fix this.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/252\/Solutions-to-Fix-Establishing-WordPress-Database-Connection-Error.html"]}]},{"@type":"WebSite","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","publisher":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization","name":"Host IT Smart Knowledge base","url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":240,"height":80,"caption":"Host IT Smart Knowledge base"},"image":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":1,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":581,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/252\/revisions\/581"}],"wp:attachment":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}