Question

Just created new WordPress on Ubuntu 14.04 Droplet - after rebooting, MySQL won't startup and fails on manual startup. How to make it work?

  • Posted August 15, 2014

I just created a new droplet, changed the MySQL root password and restarted the server with the reboot command. Now, MySQL isn’t running, and when I try to run it, I get this:

 * Starting MySQL database server mysqld  [fail]```

So I tried checking the status and I get this.

```# mysqladmin status
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!```

Any ideas here? This is a brand new droplet with minimal modifications. All I've done is upload some files into ```/var/www``` and configure and startup one vhost. 

Thanks.
Subscribe
Share

It looks like MySQL crashed while it was starting. Are there any errors in the error log?

sudo tail -30 /var/log/mysql.err

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.

Nothing happens when I type: # sudo tail -30 /var/log/mysql.err

Does that mean that the error log is empty?

I just created a new Droplet exactly the same, except without local networking, and it seems to be working now. Thanks for the command, I’ll keep that one handy.