php - "MySQL Service detected with wrong path "打开xampp后

标签 php mysql xampp port

我在我的电脑上安装了 Mysql 服务器来练习 j2ee,几天后我卸载了它并安装了用于 PHP 开发的 xampp,但它显示端口不可用错误。 我已经尝试使用 cmd 并删除 c 驱动器中的 mysql 文件,但仍然没有用我的 xampp 说 MySQL 服务检测到错误路径。 ..


错误日志:-


MySQL Service detected with wrong path
11:08:46 AM [mysql] Change XAMPP MySQL and Control Panel settings or
11:08:46 AM [mysql] Uninstall/disable the other service manually first
11:08:46 AM [mysql] Found Path: "C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="C:\Program Files (x86)\MySQL\MySQL Server 5.1\my.ini" MySQL
11:08:46 AM [mysql] Expected Path: c:\xampp\new1\mysql\bin\mysqld.exe --defaults-file=c:\xampp\new1\mysql\bin\my.ini mysql

最佳答案

当您卸载 MYSQL 服务器时,您的机器在您的 Windows 服务中仍然具有旧路径的 MYSQL 服务。为了避免 MySQL Service with wrong path error goto,

1.Registry editor(WINKEY+R > regedit )

2.Navigate to HKEY_LOCAL_MACHINE > SYSTEMS > CurrentControlSet > Services > MySQL

3.change "ImagePath" with the Expected Path(in your case it is "c:\xampp\new1\mysql\bin\mysqld.exe --defaults-file=c:\xampp\new1\mysql\bin\my.ini mysql") given in the error

完成这些步骤后重启你的xampp

关于php - "MySQL Service detected with wrong path "打开xampp后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45294860/

相关文章:

php - 如何用 PHP 计算我的广播地址?

Php随机选择数字

php - session ??如何显示用户行?

php - macOS Sierra 安装 PHP Extension intl

php - 用经度和纬度计算距离有不同的结果

php - PHP/SQL 中的日期格式

MySql - 同时更改几个表

mysql - XAMPP MySQL 数据库无法在 Mac OS X Yosemite Beta 2 中启动

apache - 在 xampp apache server v-3.2.1 on windows-10 上创建多个虚拟主机

javascript - 如何在ajax调用过滤后使项目可拖动