XAMPP MySQL无法启动

时间:2018-11-13 06:21:24

标签: mysql xampp

嘿,所以我是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

2 个答案:

答案 0 :(得分:0)

MySQL使用3306作为默认端口。

作为Apache端口,我们也不能通过XAMPP控制面板更改MySQL端口,要更改它,我们必须编辑MySQL配置文件。

要编辑配置文件,请打开XAMPP / mysql / bin /目录中的my.ini文件,找到包含数字3306的单词,即eq:port = 3306,然后用您自己的单词替换,例如3307。 / p>


enter image description here

答案 1 :(得分:0)

请在xampp配置文件中检查您的MySQL连接端口。其默认端口为3306,并在您的进程中检查此端口。关闭此端口中的所有进程,或在xampp配置文件中更改mysql连接端口。

相关问题