MySQL服务无法在XAMPP上启动
问题描述:
我安装了MySQL Server 5.6,但不久之后我不得不安装XAMPP。是MySQL服务无法在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,但仍然没有运气
我明显重启了这些更改后的所有内容,但它只是停留在尝试启动
答
卸载并重新安装包含MySQL的XAMPP。很多时候,这些安装将以管理员身份运行,如果您将其视为其他用户,您将无权修改它们。
您也可以尝试右键点击图标来启动XAMPP,然后在卸载/重新安装前选择“以管理员身份运行”并查看是否可以解决该问题。
您单独安装了Mysql ...然后您将XAMPP安装在它上面? – Hackerman
在我看来,像简单的权限问题。尝试重新安装。 – blue