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 2.4k views

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:

“`# /etc/init.d/mysql start

  • 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.


1 comment

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.

Submit an Answer
1 answer

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.