我遇到了我的XAMPP的MySQL连接错误,我无法解决。以下是来自XAMPP控制面板的错误消息:
2:23:31 PM [mysql] Attempting to start MySQL service...
2:23:33 PM [mysql] Status change detected: running
2:23:37 PM [mysql] Status change detected: stopped
2:23:37 PM [mysql] Error: MySQL shutdown unexpectedly.
2:23:37 PM [mysql] This may be due to a blocked port, missing dependencies,
2:23:37 PM [mysql] improper privileges, a crash, or a shutdown by another method.
2:23:37 PM [mysql] Press the Logs button to view error logs and check
2:23:37 PM [mysql] the Windows Event Viewer for more clues
2:23:37 PM [mysql] If you need more help, copy and post this
2:23:37 PM [mysql] entire log window on the forums
和错误日志:
2015-03-28 14:23:32 1076 [Note] Plugin 'FEDERATED' is disabled.
2015-03-28 14:23:32 12ac 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.
2015-03-28 14:23:32 1076 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-03-28 14:23:32 1076 [Note] InnoDB: The InnoDB memory heap is disabled
2015-03-28 14:23:32 1076 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-03-28 14:23:32 1076 [Note] InnoDB: Memory barrier is not used
2015-03-28 14:23:32 1076 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-03-28 14:23:32 1076 [Note] InnoDB: Not using CPU crc32 instructions
2015-03-28 14:23:32 1076 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-03-28 14:23:32 1076 [Note] InnoDB: Completed initialization of buffer pool
2015-03-28 14:23:32 1076 [Note] InnoDB: Restoring page 0 of tablespace 0
2015-03-28 14:23:32 1076 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2015-03-28 14:23:32 1076 [ERROR] InnoDB: space header page consists of zero bytes in data file C:\xampp\mysql\data\ibdata1
2015-03-28 14:23:32 1076 [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-03-28 14:23:32 1076 [ERROR] Plugin 'InnoDB' init function returned error.
2015-03-28 14:23:32 1076 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-03-28 14:23:32 1076 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-03-28 14:23:32 1076 [ERROR] Aborting
我尝试删除ibdata文件,但它没有做任何事情。我还尝试通过在my.ini文件中配置端口变量来连接到其他端口,如3307和3308,但它也没有做任何事情。