InnoDB: Unable to lock ./ibdata1 error: 35

前端 未结 3 560
轮回少年
轮回少年 2020-12-17 09:53

I\'m trying to start MySQL in safe mode but the log file just keeps spitting out:

[ERROR] InnoDB: Unable to lock ./ibdata1 error: 35
[Note] InnoDB: Check tha         


        
3条回答
  •  时光说笑
    2020-12-17 10:28

    I had a similar issue after updating MAMP from 4.x to 5.x

    Unfortunately the only way that I could manage to resolve this was by manually removing all of my database files (moving them into another directory) then starting MySQL via MAMP; this seemed to work.

    The files in question (for me) were in:

    /Library/Application Support/appsolute/MAMP PRO/db/mysql57

    All of the files in this directory (except the mysql directory) need moving somewhere else. I was then able to start MySQL.

    I realise this isn't a very useful answer for most situations, but if this is a local development environment (like MAMP, as in my case) then I think losing the local databases is probably acceptable.

提交回复
热议问题