MySQL服务不会在XAMPP上启动

时间:2014-04-01 14:10:55

标签: mysql xampp

我安装了MySQL Server 5.6,但是在我不得不安装XAMPP之后不久。

当我尝试启动MySQL时,它只是挂起......

Attempting to start MySQL app...

日志中的错误如下......

140401 15:05:43 [Note] Plugin 'FEDERATED' is disabled.
140401 15:05:43 InnoDB: The InnoDB memory heap is disabled
140401 15:05:43 InnoDB: Mutexes and rw_locks use Windows interlocked functions
140401 15:05:43 InnoDB: Compressed tables use zlib 1.2.3
140401 15:05:43 InnoDB: Initializing buffer pool, size = 16.0M
140401 15:05:43 InnoDB: Completed initialization of buffer pool
InnoDB: Error: space header page consists of zero bytes in data file C:\xampp\mysql\data\ibdata1
140401 15:05:43 InnoDB: Could not open or create data files.
140401 15:05:43 InnoDB: If you tried to add new data files, and it failed here,
140401 15:05:43 InnoDB: you should now edit innodb_data_file_path in my.cnf back
140401 15:05:43 InnoDB: to what it was, and remove the new ibdata files InnoDB created
140401 15:05:43 InnoDB: in this failed attempt. InnoDB only wrote those files full of
140401 15:05:43 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
140401 15:05:43 InnoDB: remove old data files which contain your precious data!
140401 15:05:43 [ERROR] Plugin 'InnoDB' init function returned error.
140401 15:05:43 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140401 15:05:43 [ERROR] Unknown/unsupported storage engine: InnoDB
140401 15:05:43 [ERROR] Aborting

140401 15:05:43 [Note] c:\xampp\mysql\bin\mysqld.exe: Shutdown complete

我尝试在服务中停止MySQL56服务,但它仍无法正常工作

我也尝试将my.ini中的端口更改为3307,但仍然没有运气

我显然已经在这些更改后重新启动了所有内容,但它只是暂时停止尝试启动

1 个答案:

答案 0 :(得分:0)

卸载两者并重新安装包含MySQL的XAMPP。很多时候,这些安装将作为管理员运行,如果您将其视为不同的用户,则无权修改它们。

您还可以尝试右键单击该图标以启动XAMPP并选择“以管理员身份运行”,然后再卸载/重新安装,看看是否能解决此问题。