MySQL Daemon failed to start.
Starting mysqld: [FAILED]
日志内容为:
121014 11:14:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2012-10-14 11:14:12 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2012-10-14 11:14:12 7210 [Note] Plugin 'FEDERATED' is disabled.
2012-10-14 11:14:12 7210 [Note] InnoDB: Using atomics to ref count buffer pool pages
2012-10-14 11:14:12 7210 [Note] InnoDB: The InnoDB memory heap is disabled
2012-10-14 11:14:12 7210 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2012-10-14 11:14:12 7210 [Note] InnoDB: Memory barrier is not used
2012-10-14 11:14:12 7210 [Note] InnoDB: Compressed tables use zlib 1.2.3
2012-10-14 11:14:12 7210 [Note] InnoDB: Using Linux native AIO
2012-10-14 11:14:12 7210 [Note] InnoDB: Not using CPU crc32 instructions
2012-10-14 11:14:12 7210 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2012-10-14 11:14:12 7210 [Note] InnoDB: Completed initialization of buffer pool
2012-10-14 11:14:12 7210 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
2012-10-14 11:14:12 7210 [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!
2012-10-14 11:14:12 7210 [ERROR] Plugin 'InnoDB' init function returned error.
2012-10-14 11:14:12 7210 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2012-10-14 11:14:12 7210 [ERROR] Unknown/unsupported storage engine: InnoDB
2012-10-14 11:14:12 7210 [ERROR] Aborting
2012-10-14 11:14:12 7210 [Note] Binlog end
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'partition'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'BLACKHOLE'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_METRICS'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_CMPMEM'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_CMP'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_LOCKS'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'INNODB_TRX'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'ARCHIVE'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'CSV'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'MyISAM'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'MRG_MYISAM'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'MEMORY'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'sha256_password'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'mysql_old_password'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'mysql_native_password'
2012-10-14 11:14:12 7210 [Note] Shutting down plugin 'binlog'
2012-10-14 11:14:12 7210 [Note] /usr/sbin/mysqld: Shutdown complete
121014 11:14:12 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
2 个解决方案
#1
解决了:
进入mysql安装目录 cd /var/lib/mysql
删除了如下三个文件:
ibdata1 ib_logfile0 ib_logfile1
进入mysql安装目录 cd /var/lib/mysql
删除了如下三个文件:
ibdata1 ib_logfile0 ib_logfile1
#2
印象中ibdata1可以不用删,但是ib_logfile0,ib_logfile1必须要删掉
#1
解决了:
进入mysql安装目录 cd /var/lib/mysql
删除了如下三个文件:
ibdata1 ib_logfile0 ib_logfile1
进入mysql安装目录 cd /var/lib/mysql
删除了如下三个文件:
ibdata1 ib_logfile0 ib_logfile1
#2
印象中ibdata1可以不用删,但是ib_logfile0,ib_logfile1必须要删掉