在做测试的工程中,发现mysql启动失败,报错信息如下:
--03T08::.969163Z mysqld_safe mysqld from pid file /var/data/my3306/run/mysqld.pid ended
--03T08::.304099Z mysqld_safe Starting mysqld daemon with databases from /var/data/my3306/data
--03T08::.435091Z [Warning] The syntax '--log_warnings/-W' is deprecated and will be removed in a future release. Please use '--log_error_verbosity' instead.
--03T08::.435154Z [Warning] The syntax '--metadata_locks_hash_instances' is deprecated and will be removed in a future release
--03T08::.435161Z [Warning] The syntax '--metadata_locks_cache_size' is deprecated and will be removed in a future release
--03T08::.435208Z [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
--03T08::.435232Z [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
--03T08::.438636Z [Warning] InnoDB: Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.
html
--03T08::.856517Z [ERROR] InnoDB: Log block at lsn has valid header, but checksum field contains , should be
--03T08::.856549Z [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint and the end .
--03T08::.856565Z [ERROR] InnoDB: Plugin initialization aborted with error Generic error
--03T08::.456983Z [ERROR] Plugin 'InnoDB' init function returned error.
--03T08::.457013Z [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
--03T08::.457021Z [ERROR] Failed to initialize plugins.
--03T08::.457027Z [ERROR] Aborting
解决办法呢是从网上搜到的“双胞胎拔比”的连接:
也是参考网上的:Solved
http://spin.atomicobject.com/2011/05/09/mysql-failed-registration-of-innodb-as-a-storage-engine/
Rename or move both the ./ib_logfile0 and ./ib_logfile1 files, and then start the MySQL server.