我该如何解决这个错误? mysql意外关闭

我该如何解决这个错误? mysql意外关闭

问题描述:

2015-09-08 08:20:13 2064 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2015-09-08 08:20:13 2064 [ERROR] InnoDB: space header page consists of zero bytes in data file C:\xampp\mysql\data\ibdata1
2015-09-08 08:20:13 2064 [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-09-08 08:20:13 2064 [ERROR] Plugin 'InnoDB' init function returned error.
2015-09-08 08:20:13 2064 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-09-08 08:20:13 2064 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-09-08 08:20:13 2064 [ERROR] Aborting

解决方案:

导航到以下位置并删除ibdata和日志文件

xampp> mysql> data>删除ibdata和日志文件
Solution:
navigate to the below location and delete the ibdata and log files
xampp > mysql >data > delete ibdata and log files