Report this

What is the reason for this report?

Error establishing a database connection

Posted on June 16, 2014

I haven’t touched my wordpress site in weeks and its been working fine. Now when I visit it I get: Error establishing a database connection

On both the site itself and the admin page of the site. Literally nothing has changed. My database credentials are exactly the same and are correct in the wp-config.php file

I have a 1gb droplet – should I add swap? Is that going to significantly decrease performance?

Any help would be greatly appreciated!



This textbox defaults to using Markdown to format your 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.

When I checked status it said stopped/waiting.

Restarting it gave me: <pre> start: Rejected send message, 1 matched rules; type=“method_call”, sender=“:1.106” (uid=1000 pid=32707 comm=“start mysql “) interface=“com.ubuntu.Upstart0_6.Job” member=“Start” error name=”(unset)” requested_reply=“0” destination=“com.ubuntu.Upstart” (uid=0 pid=1 comm=“/sbin/init”) </pre>

Check to see if the MySQL service is running.

I think the command is: <pre> service mysql status </pre> If it is not running, start it with: <pre> service mysql start </pre> then try that

Wait…

whoever you are I love you. It started again. I have no idea why it stopped but you just saved my company (hyperbolically of course)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.