I think this has been a common error on Digital Ocean, I recently come across this thread as I was having the same issue.
https://www.digitalocean.com/community/questions/error-establishing-a-database-connection-wordpress
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello Guys, I Setup a Digital Ocean Server using Forge, but has been common a database outage.
Somebody know how I can solve this problem.
My Server have 512 RAM. And In this server I also have a WordPress running.
Please or to participate in this conversation.