xampp mysql无法启动

klh5stk1  于 2021-06-18  发布在  Mysql
关注(0)|答案(2)|浏览(321)

嘿,所以我是相当新的php和xampp等,我想创建一个登录系统,但这需要我有一个mysql,但当我开始时,我得到这个错误,我查了一下,foudn我不得不删除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
8ljdwjyq

8ljdwjyq1#

mysql使用3306作为默认端口。
作为apache端口,我们也不能通过xampp控制面板更改mysql端口,要更改它我们必须编辑mysql配置文件。
要编辑配置文件,请打开位于xampp/mysql/bin/目录中的my.ini文件,找到包含数字3306的单词,eq:port=3306,然后用自己的替换它,例如3307。

4xrmg8kj

4xrmg8kj2#

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

相关问题