不合适的关闭后WAMP服务器橙色

时间:2015-11-10 20:42:27

标签: php mysql wamp

我的计算机在wamp服务器运行时由于断电而关闭,现在当我试图打开服务器时它仍然是橙色的http请求服务器正在工作,但是当我尝试登录MySQl时我收到以下错误:

#2002 Cannot log in to the MySQL server

我做了一些搜索,所有结果都是删除它并重新安装是否有其他方法? 我仍然是初学者,所以我实际上并不知道我需要向您展示哪些文件,以便帮助我对我需要展示的任何内容发表评论。

我在mysql日志中的最后一次登录尝试:

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

1 个答案:

答案 0 :(得分:0)

我有类似的问题,我用两种方法解决了这个问题,我提到了两者中较好的一种。

  1. 将c:\ wamp文件夹复制到任何其他安全位置
  2. 让原始c:\ wamp文件夹留在原位
  3. 从之前安装的同一个软件包安装wamp服务器
  4. 启动wamp服务器
  5. DONE ... !!!
  6. (c:\ wamp文件夹的副本到任何其他安全位置只是为了紧急情况,以防出现问题)。