xampp MySQL 不启动

时间:2023-04-30
本文介绍了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 Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.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.

你还需要将xampp\php\php.ini中的3306端口改为3307

You also need to change port 3306 to 3307 in xampp\php\php.ini

这篇关于xampp MySQL 不启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

上一篇:MySQL选择一列DISTINCT,与对应的其他列 下一篇:用户 'root'@'localhost' 访问被拒绝(使用密码:YES)(Mysql:

相关文章