【MySQL】InnoDB: Error: checksum mismatch in data file 报错

参考:http://www.jb51.net/article/66951.htm

用5.7版本启动原5.5实例后,再用5.5启动出现以下报错

InnoDB: Error: checksum mismatch in data file /data/mysql/ibdata1
:: InnoDB: Could not open or create data files.
:: InnoDB: If you tried to add new data files, and it failed here,
:: InnoDB: you should now edit innodb_data_file_path in my.cnf back
:: InnoDB: to what it was, and remove the new ibdata files InnoDB created
:: InnoDB: in this failed attempt. InnoDB only wrote those files full of
:: InnoDB: zeros, but did not yet use them in any way. But be careful: do not
:: InnoDB: remove old data files which contain your precious data!
:: [ERROR] Plugin 'InnoDB' init function returned error.
:: [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
:: [ERROR] Unknown/unsupported storage engine: InnoDB
:: [ERROR] Aborting :: [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

通过参数可以跳过错误启动,导出数据

innodb_force_recovery=6
innodb_purge_thread=0
上一篇:百度面试题——top K算法


下一篇:css3应用之自定义选中文字的背景颜色