I changed info about database accidentally in wp-config.php and can not access to wordpress since then

Posted May 8, 2017 2.2k views
WordPressUbuntu 16.04

I changed info about database accidently in wp-config.php and can not access to wordpress since then, when enter the ip address, instead of the wordpress interface, I only get the “Error establishing a database connection” and couldn’t get back to normal.

Anyone can help?

Much appreciated!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

if you know the login credential for the mysql, then follow “Step 2 — Check Database Login Credentials”

by Brian Boucheron
WordPress is one of the most popular open source content management systems in the world. Although it started out focused on blogging, over the years it has developed into a more flexible platform for websites in general. After almost fifteen years of development it is quite polished and robust, yet issues can still come up. If you've recently attempted to load your WordPress-powered website and instead saw a message stating "Error Establishing Database Connection", the cause is most often...