improper killing of mysqld - now not starting

喜你入骨 提交于 2019-11-29 07:02:46

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

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!