Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu - 12.04 - MySql won't start by using service mysql start

Tags:

mysql

ubuntu

The only way I was able to get MySql to start was to issue:

mysqld

When I issued this command, it started rolling back some database transactions that were conflicted. I have tried issuing

service mysql stop

and all I get is

Unknown instance:

Now when I try to upload anything to WordPress I get a HTTP 500 error. I am assuming this is because MySQL is running under a different user. Any thoughts on how to get this working again?

like image 549
Jesse Avatar asked Aug 09 '13 01:08

Jesse


People also ask

Why MySQL service is not starting?

Even with correct ownership, MySQL might fail to start up if there is other security software running on your system that manages application access to various parts of the file system. In this case, reconfigure that software to enable mysqld to access the directories it uses during normal operation.


1 Answers

MySql does not start when disk space is full, and does not give a detailed error message. To check the free space on the server run:

 df -h /
like image 115
Dave Horner Avatar answered Oct 13 '22 19:10

Dave Horner