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?

August 15, 2014 1.3k 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
  • It looks like MySQL crashed while it was starting. Are there any errors in the error log?

    sudo tail -30 /var/log/mysql.err
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.

Have another answer? Share your knowledge.