I got an error when starting mysql: Unable to lock ./ibdata1, error: 11

…衆ロ難τιáo~ 提交于 2019-12-02 19:55:27

问题


when removed the ibdata1 it worked, and I cant understand how it happened. I checked with ps and there was no mysql process. also permissions were ok. Is there a way to check the integrity of this file?


回答1:


this is one of the issue using NFS for MySQL , one quick solution can be found on

http://onaxer.com/blog/blog/2010/06/01/innodb-unable-to-lock-ibdata1-error-37/




回答2:


Did you restart mysql with the wrong user at some point? What were the permissions on the file and the directory it was in?




回答3:


I guess some other process is talking to this resource/file you don't have the right permissions on that file.
You could restart the computer as an easy solution.
If that does not help, you need to find out out who else is using that file. But first, check permissions.




回答4:


Found out that this is a known bug when using mysql on NFS.



来源:https://stackoverflow.com/questions/3415270/i-got-an-error-when-starting-mysql-unable-to-lock-ibdata1-error-11

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