【问题标题】:MySQL service wont start on XAMPPMySQL 服务不会在 XAMPP 上启动
【发布时间】:2014-04-01 14:10:55
【问题描述】:

我安装了 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,但仍然没有成功

在这些更改之后,我显然已经重新启动了所有内容,但它只是一直在尝试启动

【问题讨论】:

  • 你单独安装了Mysql...然后你在上面安装了XAMPP??
  • 在我看来,这就像简单的权限问题。尝试重新安装。

标签: mysql xampp


【解决方案1】:

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

您也可以尝试右键单击图标启动 XAMPP,然后在卸载/重新安装之前选择“以管理员身份运行”,看看是否可以解决。

【讨论】:

  • 谢谢,有趣的是,当我以管理员身份运行时,我收到一个新错误 - MySQL 意外关闭。这可能是由于端口被阻塞...等等"
  • 刚刚检查,这是工作电脑还是家用电脑?只是好奇是否有超出标准的安全策略。如果可以,请检查哪些端口应该打开并这样做。在安装 XAMPP 期间“可能”会自动发生,但可能不会。
  • 它实际上是大学里的一台计算机,我认为不会有安全问题,因为在此之前我使用 MySQL 很好。无论如何,我按照您的指示进行操作,但是当我单击管理员时,它告诉我...“Firefox 无法在 localhost 建立与服务器的连接。”
  • 现在它似乎在弄乱了配置中的端口后工作了,我拒绝了 phpmyadmin 的访问,但这可能超出了这个特定的问题,谢谢
猜你喜欢
  • 2013-06-25
  • 2012-12-15
  • 2019-12-29
  • 1970-01-01
  • 2021-02-17
  • 2020-06-17
  • 2016-05-30
  • 2015-09-22
相关资源
最近更新 更多