Home >Database >Mysql Tutorial >MySQL安装出现could not start the service mysql error:0处理

MySQL安装出现could not start the service mysql error:0处理

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 16:54:581611browse

当各位在安装、重装MySQL时出现could not start the service mysql error:0的错误时,可以尝试下面两种方法。一、方式1MySQL安装

当各位在安装、重装MySQL时出现could not start the service mysql error:0的错误时,可以尝试下面两种方法。

一、方式1

MySQL安装是出现could not start the service mysql error:0 提示错误,解决方法:

首先,在管理工具->服务里面将MySQL的服务给停止,然后打开cmd 进入你的MySQL bin目录下,例如 C:\Program Files\MySQL\MySQL Server 5.0\bin 然后使用如下命令mysqld-nt -remove 然后就会显示......success! 好了下面进入添加删除程序,找到MySQL选择卸载,记得选择remove。最后将MySQL目录删除,,还有数据库的目录也删除。

一、方式2

查看服务中有没有mysql,如果有将该服务停掉;

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

在控制面板中运行添加删除程序,将mysql卸载;

卸载后打开注册表,查看HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 下的键值,如果有相关mysql键值(mysql、mysqladmin)则删掉,即可;

重启,将mysql的安装残余目录删掉 (查看服务,此时服务中已没有mysql);

重新安装mysql.安装后先不要运行Server Instance Configuration wizard,重启后在开始菜单中运行该向导,即可。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn