{"id":23007,"date":"2012-09-11T08:49:54","date_gmt":"2012-09-11T12:49:54","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=23007"},"modified":"2016-04-12T06:39:34","modified_gmt":"2016-04-12T10:39:34","slug":"wordpress-error-establishing-database-connection-error","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-error-establishing-database-connection-error.html","title":{"rendered":"WordPress. &#8220;Error establishing database connection&#8221; error"},"content":{"rendered":"<p>\r\n<\/p>\r\n<p>Have you ever faced this issue during the WordPress template installation? This tutorial will show you how to fix it.<\/p>\r\n<p><strong>1.<\/strong> Please go to the folder on the server where you installed your WordPress. (You can use File Manager tool of your CPanel or any FTP client most useful for you).<\/p>\r\n<p><strong>2.<\/strong> Please find there <strong>wp-config.php<\/strong> file and open it to edit. (You can use you File Manager possibilities, usually each hosting has &quot;Edit&quot; function or you can download the file to your computer and edit it with any text editor, we advise Dreamweaver or Notepad ++).<\/p>\r\n<p><strong>3.<\/strong> Please find there your database details, they should look like below on the screenshot:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/09\/Wordpress_Error_establishing_database_connection.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/09\/Wordpress_Error_establishing_database_connection-300x90.jpg\" alt=\"\" title=\"Wordpress_Error_establishing_database_connection\" width=\"300\" height=\"90\" class=\"alignnone size-medium wp-image-23008\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/09\/Wordpress_Error_establishing_database_connection-300x90.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/09\/Wordpress_Error_establishing_database_connection-150x45.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/09\/Wordpress_Error_establishing_database_connection.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p><strong>4.<\/strong> Please compare <strong>db_name<\/strong>, <strong>db_user<\/strong>, <strong>db_password<\/strong>, <strong>db_host<\/strong> with those you used for WordPress installation, they should match, if not, these change tem in your <strong>wp-config.php<\/strong> file.<\/p>\r\n<p><strong>5.<\/strong> Save all changes, if you downloaded file to edit, please save it, upload to the same directory.<\/p>\r\n<p>I hope this tutorial was useful for you. Don&#8217;t hesitate to check video version of this template below to see how to do it. <\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"\/help\/files\/wordpress\/Wordpress_Error_establishing_database_connection.htm\" target=\"blank\">WordPress. &#8220;Error establishing database connection&#8221; error<\/a><\/p>\r\n<\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Have you ever faced this issue during the WordPress template installation? This tutorial will show you how to fix it.<\/p>\n","protected":false},"author":7,"featured_media":23010,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1344,691,1343,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/23007"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=23007"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/23007\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/23010"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=23007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=23007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=23007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}