Search code examples
mysqllinuxcommand-line-interfaceinnodb

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


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.


Solution

  • First, list MySQL processes using the ps command:

    ps aux | grep mysql
    

    enter image description here

    And then kill the process

    sudo kill 56311