2013-06-13 67 views
7

每次「MySQL的意外結束」我安裝的EasyPHP 13.1VC9它工作了幾天,然後在任意點,當我去打開它,我得到這個錯誤,我無法啓動MySQL。我嘗試以管理員身份運行,並嘗試編輯權限。此外,當我經過PHPadmin訪問MYSQL我得到以下錯誤:的EasyPHP-DevServer 13.1

#2002 - No connection could be made because the target machine actively refused it. 

這是日誌文件說:

2013-06-12 23:47:18 4148 [ERROR] InnoDB: Attempted to open a previously opened  tablespace. Previous tablespace mysql/innodb_index_stats uses space ID: 2 at filepath: .\mysql\innodb_index_stats.ibd. Cannot open tablespace userauth/userinfo which uses space ID: 2 at filepath: .\userauth\userinfo.ibd 

InnoDB: Error: could not open single-table tablespace file .\userauth\userinfo.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. 

回答

4

我只是有這個問題。我能夠通過在MySQL的配置文件中添加一行來重新啓動MySQL。這是日誌文件錯誤的選項3。我將innodb_force_recovery = 1添加到my.ini文件中。然後你重新啓動你的MySQL服務器。如果工作正常,則必須返回到配置文件,刪除該行並重新啓動。它爲我工作,但我有用戶訪問問題。我認爲這個錯誤來自於這個版本的EastPHP,我找不到解決這個問題的方法。我嘗試卸載它並安裝12.1版本。

希望這有助於!

+0

我找不到安裝12.1的源碼,介意給我一個鏈接? –

+0

@thetao:鏈接 http://sourceforge.net/projects/quickeasyphp/files/EasyPHP/12.1.0/EasyPHP-12.1_with_PHP-5.4.6-setup.exe/download – cipher

+0

謝謝!與上面的答案相比,這是一個更快的解決方案。 –

0

官方EasyPHP FAQ:

* 3。 [5.3.3,Vista/Seven] MySql的意外結束...請參閱日誌文件?

您需要更改用戶的許可了的EasyPHP目錄

1. Go to 'Computer', open/view Drive C, then double click 'Program Files (x86)'. 
2. Right click on 'EasyPHP5.3.0' folder then click 'Properties'. 
3. On 'Security' tab click 'Edit' button. 
4. Select the user that you are currently using. 
5. Under 'Permissions for Users' box, tick 'Full control' on 'Allow' column. 
6. And then click 'OK' button to apply the changes.* 

http://www.easyphp.org/faq.php#2

15

這是與MySQL 5.6.11的錯誤 - 該網站的EasyPHP說升級到MySQL 5.6.12到解決這個問題,但我不管遇到同樣的確切問題。

通過一些追蹤,我發現它是由於在EasyPHP仍在運行時(通過其Facebook page)關閉/重新啓動計算機而導致的。

的工作解決方案似乎是以下(source):

  1. 退出的EasyPHP服務器
  2. 刪除所有文件IBD駐留在你的mysql/data目錄。
  3. 重新啓動服務器,確保它開始(但你的MySQL將無法正常運行,因此,因爲沒有可用的數據庫中的網站將無法正常在大多數情況下顯示)。
  4. 停止/退出的EasyPHP服務器
  5. 所有備份IBD文件複製到其各自的位置。
  6. 重新啓動的EasyPHP服務器。
+0

這意味着你有ibd文件的備份,對嗎? - 如果你沒有備份,你不能再次工作。 – yaz

+0

@ yaz正確,儘管可能有一種方法可以使用ibd文件進行恢復,具體方法如下:http://www.chriscalender.com/?p=28 –

0

停電後,被迫重新啓動我的win7電腦我不能上的EasyPHP-DevServer 13.1 MySQL使用了,該消息:「MySQL的意外結束」:

嘗試了上述所有的答案,找到@Jessiiem回答工作。這是一個小的how-to-do列表,讓人們可以節省時間,如果遇到了同樣的問題:

  1. 我發現這裏的配置文件:

    C:\Program Files (x86)\EasyPHP-DevServer-13.1VC11\binaries\conf_files\my.ini 
    
  2. ,並補充說:

    innodb_force_recovery = 1 
    

    # Uncomment the following if you are using InnoDB tables 
    
  3. 然後重新啓動Easy PHP(以管理員身份運行);

  4. 取消註釋配置文件作爲@Jessiiem建議:

    # innodb_force_recovery = 1 
    
0

當我遭受了這個問題,它實際上並沒有在MySQL的一個版本。我嘗試過不同的版本。我認爲這是一個easyPHP問題。

解決的辦法是將innodb_force_recovery = 1代碼放在MySQL配置文件my.ini# Uncomment the following if you are using InnoDB tables的上部。

這樣,我就可以重新啓動MySQL了。它開始工作很好,所以也許這對你有用。

0

有時打開EDS-的mysqld。 exe通過CMD可以告訴你什麼是問題的癥結所在。我的意思是打開CMD.exe然後cd C:\ Program Files文件(x86)\ EasyPHP-DevServer-14.1VC11 \ binaries \ mysql \ bin \並打開eds-mysqld.exe。

我的問題是錯誤的mysql目錄,所以沒有錯誤日誌...。

相關問題