Error: Cannot create Windows service for MySql. Error: 0
图示:
当你没有事先停止并卸载已有MySQL服务,并且使用MySQL Configuration Wizard(配置向导)重新安装或升级MySQL时,会遇到该问题。发生的原因是,当配置向导试图安装服务时,它发现已经有一个同名的服务。
解决该问题的一个方案是使用配置向导时选择mysql之外的其它服务名。这样可以正确安装新服务,但保留了原来的服务。但是这样不好,最好是卸掉不再使用的旧服务。
要想永远卸掉旧的MySQL服务,通过管理权限用户在命令行执行下面的命令:
C:\>sc delete mysql
如果Windows版本中没有sc工具,可以从 下载sc工具下载delsrv工具并使用delsrvMySQL语法。
网上也有一些比较好的方法,现整理如下:
① 到控制面板删除mysql安装文件
② 到计算机-服务,去停止mysql服务
③ 去你安装的目录下(c盘、d盘等,全部删除干净):
一、mysql的安装目录,一般为C:\Program Files目录下。
二、mysql的数据存放目录,一般在C:\Documents and Settings\All Users\Application Data目录下(需要注意的时Application Data这个文件夹默认是隐藏的,要通过 工具->文件夹选项->查看->显示所有文件与文件夹 来设置隐藏文件可见)。
三、删除注册表数据,通过regedit,删除以下几个文件:
引用
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL
分享到:
相关推荐
主要介绍了解决MySQL5.1安装时出现Cannot create windows service for mysql.error:0问题的方法
运行“MySQL Server Instance Config Wizard”时,总会出现“cannot create windows service for mysql error 0”的错误,试了好多次,再次删了MySQL,重启服务器,重新安装,都无济于事。手动启动“服务”里的MySQL...
root 25555 21974 0 11:28 pts/0 00:00:00 grep mysql 启动mysql服务器 [root@fisheye data]# service mysql start MySQL server PID file could not be found![失败] Starting MySQL.............. ER
这篇文章主要涉及到在数据创建表时,遇到ERROR 1215 (HY000): Cannot add foreign key constraint 问题方面的内容,对于在数据创建表时,遇到同样问题感兴趣的同学可以参考一下。 一、问题的提出 创建两个表: ...
错误1:wizard安装最后一页,出现cannot create Windows service for mysql.error:0 错误 解决方法:打开命令行 输入 sc delete mysql 命令即 C:>sc delete mysql [SC] DeleteService SUCCESS 重起电脑,或者...
错误提示:Error: Can’t create/write to file ‘C:\WINDOWS\TEMP\#sql_738_0.MYD’ (Errcode: 17) Errno.: 1 问题分析: 1、C:\Windows\TEMP 文件夹权限不够,至少也要给出 USERS 组的可读可写权限; 2、C:\...
由 cannot create windows service for mysql 所引发的一系列mysql启动问题解决办法 Win7系统安装MySQL5.5.21图解
They can be turned off using the values 0, Off, False or No. ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; foo = ; sets foo...
-log-error=/usr/local/mysql/data/mysqld.log --pid-file=/usr/local/mysql/data/192.168.0.103.pid --socket=/usr/local/mysql/data/mysql.sock --port=3306 使用 之前的记住的 Wt#GeUu_q2oJ的密码,测试mysql的...
Cannot create TCP/IP socket(24).原因及解决办法
今天在配置服务器的时候提示这个问题Can't create/write to file,原来是php.ini中设置的tmp目录不存在
最近在工作中遇到一个问题,现将解决的方法分享出来供大家参考学习,下面这篇文章主要给大家介绍了关于MySQL启动时InnoDB引擎被禁用了的解决方法,需要的朋友们下面跟着小编来一起学习学习吧。
In file included from session_util.cpp:1:0: session_util.h:30:43: 错误:‘int32_t’不是一个类型名 static void gene_session_id(const int32_t app_id, const int64_t session_ip, std::string& session_id);...
Create TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userName` varchar(50) DEFAULT NULL, `userAge` int(11) DEFAULT NULL, `userAddress` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`) ) ...
* Due to a Windows Help engine limitation on Windows 98 and Millennium, the Help system Index tab will be empty if the index exceeds 32,767 keywords. If you encounter an empty Help Index tab after ...