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

May 8, 2017 1.4k views
WordPress Ubuntu 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!

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...
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!