mysql错误: [ERROR] InnoDB: auto-extending data file /data/ibdata1 is of a different size 768 pages
mysql报错:
2017-11-06 11:17:22 24013 [ERROR] InnoDB: auto-extending data file /data/ibdata1 is of a different size 768 pages (rounded down to MB) than specified in the .cnf file: initial 1600 pages, max 0 (relevant if non-zero) pages!
2017-11-06 11:17:22 24013 [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!
2017-11-06 11:17:22 24013 [ERROR] Plugin 'InnoDB' init function returned error.
2017-11-06 11:17:22 24013 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-11-06 11:17:22 24013 [ERROR] Unknown/unsupported storage engine: InnoDB
2017-11-06 11:17:22 24013 [ERROR] Aborting
问题解决:
切换到数据存放目录,删除下边的文件重启即可
[root@test data]# rm ibdata1
rm:是否删除普通文件 "ibdata1"?y
[root@test data]# rm ib_logfile0
rm:是否删除普通文件 "ib_logfile0"?y
[root@test data]# rm ib_logfile1
rm:是否删除普通文件 "ib_logfile1"?y