我在我的电脑上安装了 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/