How to solve InnoDB: Unable to lock ./ibdata1 mysql error?

Wojtek Dmyszewicz picture Wojtek Dmyszewicz · Mar 14, 2016 · Viewed 55.3k times · Source

2016-03-14 02:30:29 58150 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 35 2016-03-14 02:30:29 58150 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.

Answer

Wojtek Dmyszewicz picture Wojtek Dmyszewicz · Mar 14, 2016

First, list MySQL processes using the ps command:

ps aux | grep mysql

enter image description here

And then kill the process

sudo kill 56311