首页 > Note > [MySQL] Could not start the service MySQL 解决方法

[MySQL] Could not start the service MySQL 解决方法

2009年4月15日 stone

安装mysql 5.1.33,在运行Server Instance Configuration wizard时的Execute configurattion步骤中的第三项Start Service进出错,错误提示为Could not start the service MySQL (出现这种情况一般是因为装过mysql,卸载不干净造成的。卸载后重启后再重装。注意看下服务,如果未能卸载,可以用mysqld-nt -remove卸载)。

具体方法如下:
查看服务中有没有mysql,如果有将该服务停掉;
在控制面板中运行添加删除程序,将mysql卸载;
卸载后打开注册表,查看HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 下的键值,如果有相关mysql键值(mysql、mysqladmin)则删掉,即可;
重启,将mysql的安装残余目录删掉 (查看服务,此时服务中已没有mysql);
重新安装mysql.安装后先不要运行Server Instance Configuration wizard,重启后在开始菜单中运行该向导,即可。

PS:一种值得参考的方法
(
Remember, windows machines love being rebooted.
For less headaches, do the following:

Uninstall mysql. Reboot the computer. Reinstall mysql, but don't configure yet! Reboot the computer again. Then run Mysql Instance Config Wizard (found in START menu).

Good Luck! :)
)

分类: Note 标签:
本文的评论功能被关闭了.