簡體   English   中英

XAMPP MySQL 突然不工作了

[英]XAMPP MySQL suddenly doesnt work anymore

它工作正常一個月。 但是今天我想開始工作並且無法再連接到 MySQL。

我在 Windows 7 上使用 XAMPP 1.7.7

  • XAMPP 控制面板說 MySQL 正在“運行”並顯示“Mysql 已啟動 [端口 3306]”
  • 但是當我轉到本地主機並單擊狀態時,它顯示“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)

有任何想法嗎? :(

這個問題很老,但我剛剛遇到了同樣的問題,所以我會寫出我的解決方案。

這可能是 Xampp 的問題。 嘗試卸載並重新安裝。 但在此之前,你也可以嘗試一些對我有用的東西,即運行文件:

C:\xampp\mysql\resetroot.bat

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM