XAMPP MySQL 不会启动

XAMPP MySQL will not start

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

MySQL 使用 3306 作为默认端口。

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

编辑配置文件,打开XAMPP/mysql/bin/目录下的my.ini文件,找到包含数字3306的单词,eq:port=3306,然后替换成你自己的,如作为 3307.


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