Question

How to fix "Error establishing a database connection" ?

Can someone help me, this my site: imbest.info I really don’t know in digitalocean VPS.

Subscribe
Share

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

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.

Hello all,

I will recommend you to check our article on How To Debug the WordPress Error Establishing Database Connection:

https://www.digitalocean.com/community/tutorials/how-to-debug-the-wordpress-error-establishing-database-connection

Regards, Alex

This error is usually caused by incorrect username or password. Please make sure that you are supplying the correct credentials when connecting to your MySQL server.

Also, make sure that the user that is trying to access the database is granted the correct permissions using the syntax below:

GRANT ALL ON username.* TO 'db_name'@'localhost' ; 
FLUSH PRIVILEGES;
EXIT;

Is there someone from digital ocean that will respond here or is it best to move to a server with tech support