mysql安装出错cannot create windows service for mysql.error:0

 配置时最后一步出现不能启动mysql 

解决成功的办法:[MySQL] Could not start the service MySQL 解决方法

安装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_MACHINESYSTEMCurrentControlSetServices 下的键值,如果有相关mysql键值(mysql、mysqladmin)则删掉,即可;
④重启,将mysql的安装残余目录删掉 (查看服务,此时服务中已没有mysql);
⑤重新安装mysql.安装后先不要运行Server Instance Configuration wizard,重启后在开始菜单中运行该向导,即可.

PS:一种值得参考的方法

参考的文章来源:http://blog.csdn.net/u011370559/article/details/16948297

我的安装版本如下:

原文地址:https://www.cnblogs.com/dieyaxianju/p/6640906.html