Solve “Error Establishing Database Connection” on WordPress

  1. Connect to server console. In my case, I just log in digitalocean and click console from my droplet.

  2. Check mysql status:

    sudo netstat -plt
  3. If we can’t see mysql appear in output from previous step, restart mysql manually:

    sudo systemctl start mysql
  4. Problem should be fixed if you are lucky 🙂

Leave a Reply