Solve “Error Establishing Database Connection” on WordPress

Connect to server console. In my case, I just log in digitalocean and click console from my droplet. Check mysql status: sudo netstat -plt If we can’t see mysql appear in output from previous step, restart mysql manually: sudo systemctl start mysql Problem should be fixed if you are lucky 🙂