簡體   English   中英

無法從XAMPP控制面板啟動MySQL

[英]Unable to start MySQL from XAMPP Control Panel

我正在通過Udemy課程學習SQL,目前正在學習一門名為“使用MySQL學習數據庫設計”的課程。

我已經下載了XAMPP,並且課程視頻直接從XAMPP控制面板啟動MySQL。 但是,我無法通過控制面板啟動MySQL。 這是我收到的消息:

*

20:56:08  [mysql]   Attempting to start MySQL app...
20:56:09  [mysql]   Status change detected: running
20:56:12  [mysql]   Status change detected: stopped
20:56:12  [mysql]   Error: MySQL shutdown unexpectedly.
20:56:12  [mysql]   This may be due to a blocked port, missing dependencies, 
20:56:12  [mysql]   improper privileges, a crash, or a shutdown by another method.
20:56:12  [mysql]   Press the Logs button to view error logs and check
20:56:12  [mysql]   the Windows Event Viewer for more clues
20:56:12  [mysql]   If you need more help, copy and post this
20:56:12  [mysql]   entire log window on the forums
20:56:29  [mysql]   Problem detected!
20:56:29  [mysql]   Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" MySQL57"!
20:56:29  [mysql]   MySQL WILL NOT start without the configured ports free!
20:56:29  [mysql]   You need to uninstall/disable/reconfigure the blocking application
20:56:29  [mysql]   or reconfigure MySQL and the Control Panel to listen on a different port
20:56:29  [mysql]   Attempting to start MySQL app...
20:56:30  [mysql]   Status change detected: running
20:56:33  [mysql]   Status change detected: stopped
20:56:33  [mysql]   Error: MySQL shutdown unexpectedly.
20:56:33  [mysql]   This may be due to a blocked port, missing dependencies, 
20:56:33  [mysql]   improper privileges, a crash, or a shutdown by another method.
20:56:33  [mysql]   Press the Logs button to view error logs and check
20:56:33  [mysql]   the Windows Event Viewer for more clues
20:56:33  [mysql]   If you need more help, copy and post this
20:56:33  [mysql]   entire log window on the forums

*

我有可以根據需要添加的日志。 另外,我已經下載了sql community Edition,並使用了命令行功能,但是當嘗試通過控制面板啟動時,它沒有運行。

我真的很想學習,非常感謝能幫助我克服這個問題的任何人。

謝謝格雷厄姆

首先關閉您的skype然后再次啟動xamp服務器,因為skype有時使用了xamp所需的端口

接下來,如果xamp尚未啟動,則將其confighttpd.conf並搜索Listen 80將端口更改為81並將httpd-ssl-conf搜索Listen 430更改為4430重新啟動xamp希望這可以解決您的問題

您正在嘗試啟動XAMPP(MySQL隨附),但已經在計算機上安裝並運行了MySQL Server 5.7。

1.打開Xampp應用程序。 2.然后轉到配置。 Apache-> Apache(httpd conf)-> Search Listen 80將會出現在文件的開頭。 3.將其更改為Listen82。4.然后搜索ServerNamelocalhost:80 5.將其更改為ServerNamelocalhost:82 6.然后轉到config。 Apache的-> Apache(httpd-ssl- conf)-> Search Listen 442 7.將其更改為Listen 443

重新啟動您的xampp

希望這能解決您的問題

首先,您應該單獨安裝MySQL。 然后轉到已安裝xampp的文件夾(默認為c :)。 轉到phpMyAdim文件夾,您將看到config.inc.php文件,使用任何編輯器將其打開,然后輸入您的MySQL密碼。 希望它會起作用(默認情況下為空白)。

這對我來說是工作

01.Go to mysql/data/ directory
02. delete the ibdata1 & ib_logfile*(ib_logfile0,ib_logfile1,ib_logfile101) file
03. restart xampp server

暫無
暫無

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

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