2013-07-16 124 views
2

因此,從路由器打開端口,關閉防火牆並且沒有Skype,我仍然無法讓MySQL保持運行。它運行,然後立即崩潰。這兩個日誌可以在下面找到。我有多個xampp安裝,但刪除了原始文件,並關閉了自動進程。我還可以做些什麼?運行Apache但不運行MySQL的XAMPP

7:09:46 PM [main] Initializing Control Panel 
7:09:46 PM [main] Windows Version: Windows 7 Home Premium SP1 64-bit 
7:09:46 PM [main] XAMPP Version: 1.8.2 
7:09:46 PM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ] 
7:09:46 PM [main] Running with Administrator rights - good! 
7:09:46 PM [main] XAMPP Installation Directory: "c:\users\bfalcon\documents\xampp\" 
7:09:46 PM [main] Checking for prerequisites 
7:09:50 PM [main] All prerequisites found 
7:09:50 PM [main] Initializing Modules 
7:09:50 PM [Apache] Initializing module... 
7:09:50 PM [Apache] Checking for module existence... 
7:09:50 PM [Apache] Checking for required tools... 
7:09:50 PM [Apache] Checking for service (name="Apache2.4"): Service not  installed 
7:09:50 PM [Apache] Service Path: Service Not Installed 
7:09:50 PM [Apache] Checking default ports... 
7:09:50 PM [mysql]  Initializing module... 
7:09:50 PM [mysql]  Checking for module existence... 
7:09:50 PM [mysql]  Checking for required tools... 
7:09:50 PM [mysql]  Checking for service (name="mysql"): Service not installed 
7:09:50 PM [mysql]  Service Path: Service Not Installed 
7:09:50 PM [mysql]  Checking default ports... 
7:09:50 PM [filezilla]  Initializing module... 
7:09:50 PM [filezilla]  Checking for module existence... 
7:09:50 PM [filezilla]  Checking for required tools... 
7:09:50 PM [filezilla]  Checking for service (name="FileZillaServer"): Service not  installed 
7:09:50 PM [filezilla]  Service Path: Service Not Installed 
7:09:50 PM [filezilla]  Checking default ports... 
7:09:50 PM [mercury] Initializing module... 
7:09:50 PM [mercury] Checking for module existence... 
7:09:50 PM [mercury] Checking for required tools... 
7:09:50 PM [mercury] Checking default ports... 
7:09:50 PM [Tomcat] Initializing module... 
7:09:50 PM [Tomcat] Checking for module existence... 
7:09:51 PM [Tomcat] Checking for required tools... 
7:09:51 PM [Tomcat] Checking for service (name="Tomcat7"): Service not installed 
7:09:51 PM [Tomcat] Service Path: Service Not Installed 
7:09:51 PM [Tomcat] Checking default ports... 
7:09:51 PM [main] Starting Check-Timer 
7:09:51 PM [main] Control Panel Ready 
7:09:54 PM [Apache] Checking default ports... 
7:09:54 PM [Apache] Attempting to start Apache app... 
7:09:54 PM [Apache] Executing "c:\users\bfalcon\documents\xampp\apache\bin\httpd.exe" 
7:09:54 PM [Apache] Return code: 0 
7:09:55 PM [Apache] Status change detected: running 
7:10:03 PM [mysql]  Checking default ports... 
7:10:03 PM [mysql]  Attempting to start MySQL app... 
7:10:03 PM [mysql]  Executing  ""c:\users\bfalcon\documents\xampp\mysql\bin\mysqld.exe" --defaults- file="c:\users\bfalcon\documents\xampp\mysql\bin\my.ini" --standalone" 
7:10:04 PM [mysql]  Return code: 0 
7:10:04 PM [mysql]  Status change detected: running 
7:10:04 PM [mysql]  Status change detected: stopped 
7:10:04 PM [mysql]  Error: MySQL shutdown unexpectedly. 
7:10:04 PM [mysql]  This may be due to a blocked port, missing dependencies, 
7:10:04 PM [mysql]  improper privileges, a crash, or a shutdown by another method. 
7:10:04 PM [mysql]  Press the Logs button to view error logs and check 
7:10:04 PM [mysql]  the Windows Event Viewer for more clues 
7:10:04 PM [mysql]  If you need more help, copy and post this 
7:10:04 PM [mysql]  entire log window on the forums 
7:10:11 PM [main] Executing notepad.exe c:\users\bfalcon\documents\xampp\mysql\data\mysql_error.log 

7:09:46 PM [main] Initializing Control Panel 
7:09:46 PM [main] Windows Version: Windows 7 Home Premium SP1 64-bit 
7:09:46 PM [main] XAMPP Version: 1.8.2 
7:09:46 PM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ] 
7:09:46 PM [main] Running with Administrator rights - good! 
7:09:46 PM [main] XAMPP Installation Directory: "c:\users\bfalcon\documents\xampp\" 
7:09:46 PM [main] Checking for prerequisites 
7:09:50 PM [main] All prerequisites found 
7:09:50 PM [main] Initializing Modules 
7:09:50 PM [Apache] Initializing module... 
7:09:50 PM [Apache] Checking for module existence... 
7:09:50 PM [Apache] Checking for required tools... 
7:09:50 PM [Apache] Checking for service (name="Apache2.4"): Service not installed 
7:09:50 PM [Apache] Service Path: Service Not Installed 
7:09:50 PM [Apache] Checking default ports... 
7:09:50 PM [mysql]  Initializing module... 
7:09:50 PM [mysql]  Checking for module existence... 
7:09:50 PM [mysql]  Checking for required tools... 
7:09:50 PM [mysql]  Checking for service (name="mysql"): Service not installed 
7:09:50 PM [mysql]  Service Path: Service Not Installed 
7:09:50 PM [mysql]  Checking default ports... 
7:09:50 PM [filezilla]  Initializing module... 
7:09:50 PM [filezilla]  Checking for module existence... 
7:09:50 PM [filezilla]  Checking for required tools... 
7:09:50 PM [filezilla]  Checking for service (name="FileZillaServer"): Service not installed 
7:09:50 PM [filezilla]  Service Path: Service Not Installed 
7:09:50 PM [filezilla]  Checking default ports... 
7:09:50 PM [mercury] Initializing module... 
7:09:50 PM [mercury] Checking for module existence... 
7:09:50 PM [mercury] Checking for required tools... 
7:09:50 PM [mercury] Checking default ports... 
7:09:50 PM [Tomcat] Initializing module... 
7:09:50 PM [Tomcat] Checking for module existence... 
7:09:51 PM [Tomcat] Checking for required tools... 
7:09:51 PM [Tomcat] Checking for service (name="Tomcat7"): Service not installed 
7:09:51 PM [Tomcat] Service Path: Service Not Installed 
7:09:51 PM [Tomcat] Checking default ports... 
7:09:51 PM [main] Starting Check-Timer 
7:09:51 PM [main] Control Panel Ready 
7:09:54 PM [Apache] Checking default ports... 
7:09:54 PM [Apache] Attempting to start Apache app... 
7:09:54 PM [Apache] Executing "c:\users\bfalcon\documents\xampp\apache\bin\httpd.exe" 
7:09:54 PM [Apache] Return code: 0 
7:09:55 PM [Apache] Status change detected: running 
7:10:03 PM [mysql]  Checking default ports... 
7:10:03 PM [mysql]  Attempting to start MySQL app... 
7:10:03 PM [mysql]  Executing  ""c:\users\bfalcon\documents\xampp\mysql\bin\mysqld.exe" --defaults- file="c:\users\bfalcon\documents\xampp\mysql\bin\my.ini" --standalone" 
7:10:04 PM [mysql]  Return code: 0 
7:10:04 PM [mysql]  Status change detected: running 
7:10:04 PM [mysql]  Status change detected: stopped 
7:10:04 PM [mysql]  Error: MySQL shutdown unexpectedly. 
7:10:04 PM [mysql]  This may be due to a blocked port, missing dependencies, 
7:10:04 PM [mysql]  improper privileges, a crash, or a shutdown by another  method. 
7:10:04 PM [mysql]  Press the Logs button to view error logs and check 
7:10:04 PM [mysql]  the Windows Event Viewer for more clues 
7:10:04 PM [mysql]  If you need more help, copy and post this 
7:10:04 PM [mysql]  entire log window on the forums 
7:10:11 PM [main] Executing notepad.exe c:\users\bfalcon\documents\xampp\mysql\data\mysql_error.log 
+0

您是否檢查過任何流氓流程,這可能會阻止MySQL端口?你可以嘗試切換MySQL使用的端口。 – Sirko

+0

在更改根密碼並且不在配置文件中更改它之後,可能會發生這種情況。嘗試重置根密碼。 –

+0

沒有解決方案,但是:我的經驗是,在Windows主機上運行linux虛擬機而不是xampp要好得多。易於使用和端口到另一臺電腦,你不需要處理Windows的問題。 – steven

回答

0
7:09:50 PM [main] Initializing Modules 
7:09:50 PM [Apache] Initializing module... 
7:09:50 PM [Apache] Checking for module existence... 
7:09:50 PM [Apache] Checking for required tools... 
7:09:50 PM [Apache] Checking for service (name="Apache2.4"): Service not installed<<<-- 7:09:50 PM [Apache] Service Path: Service Not Installed 
7:09:50 PM [Apache] Checking default ports... 

我建議你卸載Xampp的每一個休息,然後重新安裝它。好像你殺死了所有的模塊,但我不知道thoug

+0

非常感謝!我之前曾嘗試過這麼多次,但是我刪除了所有其他xampps,並將它重新安裝在第一個實例所在的位置。 – BFalcon

0

您可以使用 「mysql_start」 批處理文件,這是XAMPP文件夾下運行XAMPP MySQL的。

0

這個固定:

Service Path: Service Not Installed 

使用您的Windows指導重新安裝一切對我來說這個問題:

  1. 導航到\ xampp \ mysql
  2. 執行:mysql_uninstallservice.bat
  3. 執行:mysql_installservice.bat
  4. 可選擇通過執行復位根:resetroot.bat
  5. 啓動XAMPP,你應該看到MySQL的運行。

希望它適合你們!