{"id":1901,"date":"2012-08-11T15:36:38","date_gmt":"2012-08-11T15:36:38","guid":{"rendered":"http:\/\/www.serverslot.com\/?p=1901"},"modified":"2013-01-23T17:43:54","modified_gmt":"2013-01-23T17:43:54","slug":"error-establishing-a-database-connection-in-wordpress-site","status":"publish","type":"post","link":"https:\/\/serverslot.com\/hosting-issues\/error-establishing-a-database-connection-in-wordpress-site\/","title":{"rendered":"&#8220;Error establishing a database connection&#8221; in wordpress Site"},"content":{"rendered":"<p><strong>&#8220;Error establishing a database connection&#8221; in wordpress we quite often find this problem.<\/strong><\/p>\n<p>Most of the\u00a0newbies\u00a0get worried after finding that error on their wordpress website even it is something not very much desasteroud.<\/p>\n<p>What could be the reasons behind\u00a0Error establishing a database connection in wordpress site.<\/p>\n<p><strong>1.<\/strong> Most\u00a0probably\u00a0the details of your database like DATABASE NAME, DATABASE USER or DATABASE PASSWORD are mismatched with the details you have in the file wp-config (you can find that file in your hosting main folder usually public_html).<\/p>\n<p><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"ca-pub-6441688276343625\";\n\/* serverslot small horizontal *\/\ngoogle_ad_slot = \"7309259884\";\ngoogle_ad_width = 468;\ngoogle_ad_height = 60;\n\/\/-->\n<\/script><br \/>\n<script type=\"text\/javascript\"\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><br \/>\n<strong>How you can check and verify that issue?<\/strong><\/p>\n<p><strong>Step1.<\/strong><\/p>\n<p>Simply open the page of your databases from where you create or manage databases in your hosting control panel, get all the credential like database name, user and password from here (if you have\u00a0forgotten\u00a0the password of user, you may delete the user and create the same again and attach with the related database with all permissions)<\/p>\n<p><strong>Step2.<\/strong><\/p>\n<p>Now open your file manager or FTP and download wp-config.php file in case if your are dealing with wordpress or in other cases you may have to download your web\u00a0configuration\u00a0file on your local system, then open that file through NOTEPAD, here you can find whole the information about your database, you may match that information with those credntials you provided while creating database and username, if some thing you found mismatch, edit that accrding to the info you set while creating database.<\/p>\n<p>once you made changes accordingly save that page and upload again.<\/p>\n<p>Then browse your site again, hopefully it will work for you.<\/p>\n<p><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"ca-pub-6441688276343625\";\n\/* serverslot small horizontal *\/\ngoogle_ad_slot = \"7309259884\";\ngoogle_ad_width = 468;\ngoogle_ad_height = 60;\n\/\/-->\n<\/script><br \/>\n<script type=\"text\/javascript\"\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><br \/>\n<strong>Other issue for this error could be<\/strong><\/p>\n<p><strong>2.<\/strong>\u00a0Database server is down due to huge load on the server (You must contact to your hosting services provide)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Error establishing a database connection&#8221; in wordpress we quite often find this problem. Most of the\u00a0newbies\u00a0get worried after finding that error on their wordpress website \u2026 <a href=\"https:\/\/serverslot.com\/hosting-issues\/error-establishing-a-database-connection-in-wordpress-site\/\">more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts\/1901"}],"collection":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/comments?post=1901"}],"version-history":[{"count":0,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts\/1901\/revisions"}],"wp:attachment":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/media?parent=1901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/categories?post=1901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/tags?post=1901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}