由于意外错误,MYSQL无法启动

时间:2017-08-01 18:56:12

标签: php laravel-5

当我打开XAMPP并点击启动MySQL按钮时,它给了我一个错误,我之前启动它但现在它还没有工作

以下是日志文件中的错误请帮帮我。

2017-08-01 23:43:15 2790 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2017-08-01 23:43:15 10128 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2017-08-01 23:43:15 10128 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-08-01 23:43:15 10128 [Note] InnoDB: The InnoDB memory heap is disabled
2017-08-01 23:43:15 10128 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-08-01 23:43:15 10128 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-08-01 23:43:15 10128 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-08-01 23:43:15 10128 [Note] InnoDB: Using generic crc32 instructions
2017-08-01 23:43:15 10128 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-08-01 23:43:15 10128 [Note] InnoDB: Completed initialization of buffer pool
2017-08-01 23:43:15 10128 [Note] InnoDB: Restoring page 0 of tablespace 0
2017-08-01 23:43:15 10128 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2017-08-01 23:43:15 10128 [ERROR] InnoDB: space header page consists of zero bytes in data file C:\xampp\mysql\data\ibdata1
2017-08-01 23:43:15 10128 [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-08-01 23:43:15 10128 [ERROR] Plugin 'InnoDB' init function returned error.
2017-08-01 23:43:15 10128 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-08-01 23:43:15 10128 [Note] Plugin 'FEEDBACK' is disabled.
2017-08-01 23:43:15 10128 [ERROR] Unknown/unsupported storage engine: InnoDB
2017-08-01 23:43:15 10128 [ERROR] Aborting

1 个答案:

答案 0 :(得分:0)

基于这个答案 XAMPP - MySQL shutdown unexpectedly

  1. 退出Xampp服务器
  2. 转到您的C:\ xampp \ mysql \ data目录
  3. 删除 ibdata1 文件
  4. 重新启动xampp服务器
  5. 应该有用