improper killing of mysqld - now not starting

后端 未结 2 1535
轮回少年
轮回少年 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: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

提交回复
热议问题