XAMPP MySQL突然不再起作用了

时间:2014-03-12 14:09:17

标签: mysql xampp

一个月工作正常。但今天我想开始工作,不能再连接MySQL了。

我在Windows 7上使用XAMPP 1.7.7

  • XAMPP控制面板说MySQL是"运行"并显示" Mysql已启动[端口3306]"
  • 但是当我转到localhost并点击状态时,它会显示" MySQL数据库已停用"
  • 当我转到phpmyadmin时,它显示:" 2002 - 服务器没有响应(或者本地MySQL服务器的套接字未正确配置)"

C:\ xampp \ mysql \ data中的mysql_error.log文件是否显示没有错误?

140312 15:02:24 [Note] Plugin 'FEDERATED' is disabled.
140312 15:02:24 InnoDB: The InnoDB memory heap is disabled
140312 15:02:24 InnoDB: Mutexes and rw_locks use Windows interlocked functions
140312 15:02:24 InnoDB: Compressed tables use zlib 1.2.3
140312 15:02:24 InnoDB: Initializing buffer pool, size = 16.0M
140312 15:02:24 InnoDB: Completed initialization of buffer pool
140312 15:02:24 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
140312 15:02:24  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
140312 15:02:24  InnoDB: Waiting for the background threads to start
140312 15:02:25 InnoDB: 1.1.8 started; log sequence number 3612444192
140312 15:02:25 [Note] Event Scheduler: Loaded 0 events
140312 15:02:25 [Note] mysql\bin\mysqld.exe: ready for connections.
Version: '5.5.16'  socket: ''  port: 3306  MySQL Community Server (GPL)

有什么想法吗? :(

1 个答案:

答案 0 :(得分:1)

问题是陈旧的,但我遇到了同样的问题,所以我会写出我的解决方案。

这可能是xampp的问题。 尝试再次卸载并安装。 但之前,你可以尝试一些对我有用的东西,即运行文件:

C:\ XAMPP \ MySQL的\ resetroot.bat