improper killing of mysqld - now not starting

后端 未结 2 1525
轮回少年
轮回少年 2020-12-18 01:48

I stopped mysqld by killing the process id, and then deleted mysqld.sock file also. Now, mysqld is not starting.

I know there is some data corruption. But now I nee

相关标签:
2条回答
  • 2020-12-18 02:31

    Wow. I had this issue because it was an early morning and my brain wasn't working. I was doing the following:

     sudo mysqld -u root -p
    

    when I should have been doing:

     sudo mysql -u root -p
    

    Hope this helps someone else who was having a rough morning like me.. hahah

    0 讨论(0)
  • 2020-12-18 02:32

    You need to restore the innodb data files.

    # cd /var/lib/mysql
    # mkdir bak
    # mv ibdata1 bak/
    # mv ib_logfile* bak/
    # cp -a bak/ibdata1 ibdata1
    # cp -a bak/ib_logfile* .
    # rm -rf bak
    # service mysqld restart
    

    Reference: http://notesonit.blogspot.hk/2013/05/innodb-unable-to-lock-ibdata1-error-11.html

    0 讨论(0)
提交回复
热议问题