MySQL Job failed to start

后端 未结 13 1917
离开以前
离开以前 2021-01-30 14:40

I\'m on Kubuntu 12.04, and after installing mysql via an apt-get (mysql ver: 5.5.35), i\'m trying to start mysql service, but I got this error:

sudo servi

13条回答
  •  滥情空心
    2021-01-30 15:34

    I had the same problem. But i discover that my hd is full.

    $ sudo cat /var/log/upstart/mysql.log
    /proc/self/fd/9: ERROR: The partition with /var/lib/mysql is too full!
    

    So, I run

    $ df -h
    

    And I got the message

    /dev/xvda1      7.8G  7.4G     0 100% /
    

    Then I found out which folder was full by running the following command on the terminal

    $ cd /var/www
    $ for i in *; do echo $i; find $i |wc -l; done
    

    This give me the number of files on each folder on /var/www. I logged into the folder with most files, and deleted some backup files, and i continued deleting useless files and cache files.

    then I run $ sudo /etc/init.d/mysql start and it work again

提交回复
热议问题