标签:
断电引起的mysql无法启动的问题:
shell> mysql.server start Starting MySQL ..................................................................................................... ERROR! The server quit without updating PID file (/usr/local/var/mysql/NilYangdeiMac.local.pid).
2015-08-06 15:05:36 1920 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files. 2015-08-06 15:05:37 1920 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 35 2015-08-06 15:05:37 1920 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files. 2015-08-06 15:05:37 1920 [Note] InnoDB: Unable to open the first data file 2015-08-06 15:05:37 7fff77755300 InnoDB: Operating system error number 35 in a file operation. InnoDB: Error number 35 means ‘Resource temporarily unavailable‘. InnoDB: Some operating system error numbers are described at InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html 2015-08-06 15:05:37 1920 [ERROR] InnoDB: Can‘t open ‘./ibdata1‘ 2015-08-06 15:05:37 1920 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data! 2015-08-06 15:05:37 1920 [ERROR] Plugin ‘InnoDB‘ init function returned error. 2015-08-06 15:05:37 1920 [ERROR] Plugin ‘InnoDB‘ registration as a STORAGE ENGINE failed. 2015-08-06 15:05:37 1920 [ERROR] Unknown/unsupported storage engine: InnoDB 2015-08-06 15:05:37 1920 [ERROR] Aborting
注意下面提到的几个错误:
Check that you do not already have another mysqld process using the same InnoDB data or log files (已经有进程在运行)
Unable to lock ./ibdata1
InnoDB: Can‘t open ‘./ibdata1‘
Unable to open the first data file
说明日志文件可能坏掉了,得重来
shell> rm ib_logfile0 ib_logfile1 ibdata1
shell> ps aux|grep mysqld |grep -v ‘grep‘| awk ‘{print $2}‘|xargs kill
shell> mysql.server start Starting MySQL .................................. SUCCESS!
问题解决。
标签:
原文地址:http://my.oschina.net/lxrm/blog/488671