xampp MySQL 无法启动

2022-01-14 00:00:00 xampp mysql

我在 Windows 7 32 位上安装了 Xampp.当我尝试在 XAMPP 控制面板 (v3.2.1) 中启动 MySql 时,我收到以下消息并且 MySql 没有启动.

I installed Xampp on Windows 7 32-bit. When I try to start MySql in XAMPP control panel (v3.2.1) I have the following message and MySql does not start.

23:02:03  [mysql]   Problem detected!
23:02:03  [mysql]   Port 3306 in use by ""C:Program FilesMySQLMySQL Server 5.1inmysqld" --defaults-file="C:Program FilesMySQLMySQL Server 5.1my.ini" MySQL"!
23:02:03  [mysql]   MySQL WILL NOT start without the configured ports free!
23:02:03  [mysql]   You need to uninstall/disable/reconfigure the blocking application
23:02:03  [mysql]   or reconfigure MySQL and the Control Panel to listen on a different port
23:02:03  [mysql]   Attempting to start MySQL service...

这里报告了类似的问题,但没有工作回答.当我尝试在禁用 MySql 的情况下安装时,结果是我什至没有选择尝试运行它.

A similar problem was reported here but there is no working answer. When I try to install with MySql disabled, the result is that I even don't have an option even to try to run it.

我是 Xampp 的新手,不知道在哪里以及寻找什么来解决问题

I am new to Xampp and don't know where and what to look for to solve the issue

我需要用 PHP 运行 Apache 和 MySql.

I need to run Apache and MySql with Php.

推荐答案

您已经在这台机器上安装了一个使用端口 3306 的 mySQL 版本.进入最新的 my.ini 文件并将端口更改为 3307.重新启动 mySQL 服务,看看它是否出现.

You already have a version of mySQL installed on this machine that is using port 3306. Go into the most recent my.ini file and change the port to 3307. Restart the mySQL service and see if it comes up.

你还需要在xamppphpphp.ini中将3306端口改为3307

You also need to change port 3306 to 3307 in xamppphpphp.ini

相关文章