嘿,我对php和XAMPP等都很陌生。我想创建一个登录系统,但这需要我有一个MySQL,但是当我得到这个错误时,我查了一下,我不得不删除ibdata1,但是它一直回来,有人知道如何修复这个错误吗?
7:18:52 [mysql] Attempting to start MySQL app...
7:18:53 [mysql] Status change detected: running
7:18:56 [mysql] Status change detected: stopped
7:18:56 [mysql] Error: MySQL shutdown unexpectedly.
7:18:56 [mysql] This may be due to a blocked port, missing dependencies,
7:18:56 [mysql] improper privileges, a crash, or a shutdown by another method.
7:18:56 [mysql] Press the Logs button to view error logs and check
7:18:56 [mysql] the Windows Event Viewer for more clues
7:18:56 [mysql] If you need more help, copy and post this
7:18:56 [mysql] entire log window on the forums发布于 2018-11-13 06:47:31
MySQL使用3306作为默认端口。
作为Apache端口,我们也不能通过XAMPP更改MySQL端口,要更改它,我们必须编辑MySQL配置文件。
若要编辑配置文件,请打开位于XAMPP/mysql/bin/目录中的my.ini文件,查找包含编号3306的单词,eq: port = 3306,然后将其替换为您自己的文件,如3307。

发布于 2018-11-13 06:54:15
请在xampp配置文件中检查您的MySQL连接端口。它的默认端口3306,并在您的进程中检查这个端口。关闭此端口中的所有进程或更改xampp配置文件中的mysql连接端口。
https://stackoverflow.com/questions/53274961
复制相似问题