Blogger WordPress

Fix Error Establishing A Database Connection WordPress Localhost

Hey guys, Have you faced the problem of getting Error Establishing A Database Connection ? Have you may face situation like all your websites on same hosting are not working ? And here is a simple article on error establishing a database connection wordpress fix. If get this error you are unable to open your dashboard also. You can get error establishing a database connection wordpress login also. The main intention of writing this article is I too faced same problem on my site with dreamhost hosting. When I opened my site I saw the message getting error establishing a database connection in wordpress  with dreamhost hosting. Here is a simple tutorial to fix error establishing a database connection in wordpress localhost.

Fix Error Establishing A Database Connection

Error Establishing A Database Connection WordPress Localhost:

When this error occurs ? when you change the password settings in your localhost this problem will occurs. But you can fix error establishing a database connection by simply knowing your password. Here is a step by step procedure to fix fix error establishing a database connection in wordpress localhost. After solving the problem you can get your site back and you can login into your dashboard.

How To  Fix Error Establishing A Database Connection WordPress Localhost :

  • First of all you have to login to your site via FTP (Filezilla) by typing your hostname, username, password and port.
  • Then open wp-config.php file as text file in notepad.
  • In that file you will see like this “define(‘DB_PASSWORD’, ‘yourpassword’);”
  • In “yourpassword” place you have to type your localhost  password.
  • You can get the password by going to your panel and clicking on MySQL Databases.
  • After typing your password save wp-config.php file.

Conclusion

That’s it error establishing a database connection in wordpress fix is completed. Now your sites will load and you can get your dashboard again. This is a simple tutorial to fix error establishing a database connection in wordpress localhost.

Leave a Comment