2013-12-18 37 views
5

我安装了Windows 8.1,然后我重新安装wampserver和一切工作..直到我得到一个橙色的是,由于没有运行我的MySQL服务器....的Windows 8.1 Wampserver MySQL将无法运行

Wampserver 2.4

的MySQL 5.6.12

PHP 5.4.12

的Apache 2.4.4

这是日志文件

2013-12-18 10:00:00 904 [Note] Plugin 'FEDERATED' is disabled. 
2013-12-18 10:00:00 904 [Note] InnoDB: The InnoDB memory heap is disabled 
2013-12-18 10:00:00 904 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2013-12-18 10:00:00 904 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2013-12-18 10:00:00 904 [Note] InnoDB: Not using CPU crc32 instructions 
2013-12-18 10:00:00 904 [Note] InnoDB: Initializing buffer pool, size = 128.0M 
2013-12-18 10:00:00 904 [Note] InnoDB: Completed initialization of buffer pool 
2013-12-18 10:00:00 904 [Note] InnoDB: Highest supported file format is Barracuda. 
2013-12-18 10:00:00 904 [Note] InnoDB: The log sequence numbers 2283844 and 2283844 in ibdata files do not match the log sequence number 2484632 in the ib_logfiles! 
2013-12-18 10:00:00 904 [Note] InnoDB: Database was not shutdown normally! 
2013-12-18 10:00:00 904 [Note] InnoDB: Starting crash recovery. 
2013-12-18 10:00:00 904 [Note] InnoDB: Reading tablespace information from the .ibd files... 
2013-12-18 10:00:00 904 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace airbnb/amenities uses space ID: 6 at filepath: .\airbnb\amenities.ibd. Cannot open tablespace webotrip/amenities which uses space ID: 6 at filepath: .\webotrip\amenities.ibd 
InnoDB: Error: could not open single-table tablespace file .\webotrip\amenities.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. 

回答

13

我找到了解决办法

  1. 备份您的\ WAMP \ BIN \ mysql的\ mysql5.6.12 \ data文件夹,以防万一。

  2. 左击wampmanager图标 - >的MySQL - >的my.ini(编辑MySQL的配置文件中)

并添加以下行到wampmysqld部[wampmysqld](或[mysqld的]如果您不必[wampmysqld])

innodb_force_recovery = 1

然后保存的my.ini

  • LEF t点击wampmanager图标 - > MySQL - >服务 - >重新启动服务
  • 给它一分钟做它的恢复,然后再次检查mysql错误日志,看它是否恢复了数据库。

  • 左击wampmanager图标 - >的MySQL - >的my.ini(编辑MySQL的配置文件中)
  • 现在除去innodb_force_recovery = 1个参数预先加入你。

    +0

    在Windows 8.1完全更新我有同样的问题后,我关闭了电脑,并再次启动MySQL的打我与相同的错误。我会做的任何事情都行不通。 – Bogdan

    +0

    还没有测试过它,但它看起来很有希望。 – Bogdan

    +0

    这工作对我来说: **坚持与32位。** 卸载64位,并确保你删除mysql-data文件夹及其所有子文件夹之前安装32位。 (来源:http://forum.wampserver.com/read.php?2,125883,printview,page=1) – davidtaubmann

    相关问题