簡體   English   中英

我怎樣才能讓mysql服務器在xampp中工作?

[英]How can I get mysql server to work in xampp?

我最近在Windows 7中安裝了xampp。當我嘗試運行Mysql時,出現以下錯誤:

Error: MySQL shutdown unexpectedly.
12:27:51 PM  [mysql]    This may be due to a blocked port, missing dependencies, 
12:27:51 PM  [mysql]    improper privileges, a crash, or a shutdown by another method.
12:27:51 PM  [mysql]    Press the Logs button to view error logs and check
12:27:51 PM  [mysql]    the Windows Event Viewer for more clues
12:27:51 PM  [mysql]    If you need more help, copy and post this
12:27:51 PM  [mysql]    entire log window on the forums

在my.ini中,我已將端口從3306更改為3307,因為我的計算機中也運行了另一個mysql服務器5.6.19。 但是我仍然遇到同樣的錯誤。 請任何人能幫助我嗎? 我還卸載了Xampp並再次安裝它:(。

剛剛在10分鍾前解決了這個問題。

  1. 打開XAMPP
  2. 點擊配置
  3. 單擊服務和端口設置
  4. 單擊MySQL選項卡
  5. 更改主端口
  6. 點擊保存
  7. 然后重啟MySQL服務

在嘗試關閉所有聊天程序(例如skype等)之前經歷了此過程,因為它使用的端口與xampp端口80相同,現在關閉后,您可以在運行xamp后重新打開它

之前我遇到過類似的問題,發現的唯一解決方案是使用舊版本的XAMPP。 目前我不在家用PC上,無法提供當前適用於我的確切版本,但是如果有幫助,我會在以后的評論中發布(我的最佳猜測是1.7.5)。

同時,如果您使用的是XAMPP的最新版本,則可以嘗試使用舊版本。

暫無
暫無

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

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