Mysql的错误:[ERROR] InnoDB: Unable to lock ./ibdata1, error: 11

错误环境:

pwd

/usr/local/mysql/

[root@lamp mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql/


错误提示:

2016-08-17 09:39:23 13229 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2016-08-17 09:39:23 13229 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.


问题分析:

原来的环境出现问题,打算重新编译安装,但是提示如上,分析了一下,原来的mysqld进程没有关闭,然后关闭了mysqld ,killall -9 mysqld 

为了防止出现新的错误:

rm -rf /data/mysql/

ok 

重新安装

ok了!

转载于:https://my.oschina.net/linuxphp/blog/735362

你可能感兴趣的:(Mysql的错误:[ERROR] InnoDB: Unable to lock ./ibdata1, error: 11)