How to fix "Error establishing a database connection" ?

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


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:

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' ; 

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