Apache 正在运行但 MySQL 未启动 - WAMP
Posted
技术标签:
【中文标题】Apache 正在运行但 MySQL 未启动 - WAMP【英文标题】:Apache Running but MySQL does not start - WAMP 【发布时间】:2014-08-08 05:13:02 【问题描述】:我在Win 7
上安装了WAWMP
。它运行良好,但自从我重新启动系统后,我遇到了问题。
问题是mysql
没有启动,但Apache
正常运行。当我 Test Port 80
它说 Apache 正在运行。
我已尝试更改 my.ini
或 MySQL
中的端口,但 MySQL 仍然无法启动。
这是我尝试启动MySQL
时的最新日志
2014-06-18 08:15:23 4496 [Note] Plugin 'FEDERATED' is disabled.
2014-06-18 08:15:23 4496 [Note] InnoDB: The InnoDB memory heap is disabled
2014-06-18 08:15:23 4496 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-06-18 08:15:23 4496 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-06-18 08:15:23 4496 [Note] InnoDB: Not using CPU crc32 instructions
2014-06-18 08:15:23 4496 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-06-18 08:15:23 4496 [Note] InnoDB: Completed initialization of buffer pool
2014-06-18 08:15:23 4496 [Note] InnoDB: Highest supported file format is Barracuda.
2014-06-18 08:15:24 4496 [Note] InnoDB: The log sequence numbers 1625977 and 1625977 in ibdata files do not match the log sequence number 22262437 in the ib_logfiles!
2014-06-18 08:15:24 4496 [Note] InnoDB: Database was not shutdown normally!
2014-06-18 08:15:24 4496 [Note] InnoDB: Starting crash recovery.
2014-06-18 08:15:24 4496 [Note] InnoDB: Reading tablespace information from the .ibd files...
2014-06-18 08:15:24 4496 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace joomla_web/intern_extensions uses space ID: 104 at filepath: .\joomla_web\intern_extensions.ibd. Cannot open tablespace test/joomla_assets which uses space ID: 104 at filepath: .\test\joomla_assets.ibd
InnoDB: Error: could not open single-table tablespace file .\test\joomla_assets.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.
【问题讨论】:
它们似乎是您的文件损坏。您是否在长时间导入期间关闭了 WAMP? XAMPP/MySQL: could not open single-table tablespace file .\mysql\innodb_index_stats.ibd after restart of MySQL 的可能重复项 【参考方案1】:尝试转到控制面板、管理工具、服务或运行 services.msc(快捷方式)尝试启动和停止并重新启动 MYSQL 服务。
【讨论】:
【参考方案2】:好的,我通过删除C:\WAMP\mysql\data
中的ibdata1
文件解决了我的问题
对于那些不知道What is stored in ibdata1是什么的人
Read this answer
【讨论】:
以上是关于Apache 正在运行但 MySQL 未启动 - WAMP的主要内容,如果未能解决你的问题,请参考以下文章