`
aben328
  • 浏览: 1451928 次
  • 性别: Icon_minigender_1
  • 来自: 广东
社区版块
存档分类

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

阅读更多

当各位在安装、重装时出现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,重启后在开始菜单中运行该向导,即可。

(ajava.org整理,内容源自互联网)

 

 

 

 

 

windowsxp系统 mysql-5.0.81
提示:1045 access denied for user 'root'@'localhost' using password yes

 

 

 MySQL 5.1 安装过程中报apply security setting错误的解决办法 收藏
Mysql安装错误apply security settings 解决方法

The security settings could not be applied to the database because the connection has failed with the following error.

Error Nr. 1045

Access denied for user 'root'@'localhost' (using password: YES)

If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. Otherwise no client application can connect to the server. After you have opened the port please press [Retry] to apply the security settings.

If you are re-installing after you just uninstalled the MySQL server please note that the data directory was not removed automatically. Therefore the old password from your last installation is still needed to connect to the server. In this case please select skip now and re-run the Configuration Wizard from the start menu.

MySQL 5.1 安装过程中报apply security setting错误的解决办法

1, 卸载MySQL

2, 删除目录 C:\Documents and Settings\All Users\Application Data\MySQL

3, 重新安装MySQL 就 OK 啦

------------------------------------------

[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_MACHINE\SYSTEM\CurrentControlSet\Services 下的键值,如果有相关mysql键值(mysql、mysqladmin)则删掉,即可;

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

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

PS:一种值得参考的方法

---------------------------------------------

msyql安装到最后一步start service错误解决方法

1,到控制面板里面先把mysql删除.

2.到c盘C:\Program Files目录下把mysql目录删除.

3.如果在其他盘还有设置目录也要删除.空目录也要删除

4.到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

有的话,全部删除!

(技巧:用F3循环查找“mysql”)

5.如果任务管理器里有关mysql内容也删除

6,把防火墙关了

7,重新装mysql(这里我没有重启计算机)

重装时候有必要的话,重启计算机,停用IIS,和删除temp里的临时文件.

实在不行的话,配置mysql时候,把mysql服务换个服务名.

******************************************************************************************

---------------------------

删除项时出错。

---------------------------

无法删除 LEGACY_MYSQL51: 删除项时出错。

---------------------------

确定 

---------------------------

解决办法:注册表项里右键增加administrators所有权限

安装mysql时可能产生cannot create windows service for mysql.error:0错误,错误的原因多数由于重新安装mysql或者对mydql升级,使用MySQL Configuration Wizard而产生.

解决的方法:到regedit把注册表,用F3循环查找“mysql”,全部删除,重新装mysql,即可。


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/gz2008gz/archive/2009/12/22/5058546.aspx



提示说如果本机安装了防火墙,请确认端口3306Mysql默认的端口已开通,我安装的是瑞星防火墙,但是不知该怎么正确设置,刚在网上找的方法:开通端口3306

瑞星防火墙开放端口设置

一、 启动瑞星防火墙主程序,点击“菜单—设置”,

二、选择“IP规则设置”,弹出对话框后,点击“增加规则”按钮,在对应的地方按以下进行设置,保存后退出。


三、执行同样的步骤放行27991端口,只需把本地制定端口改为27991即可。
四、放行交易程序:在主程序界面选择“访问规则”标签,点击“增加规则”,选择交易程序所在的位置即可。
五、如果是其他的防火墙,请参照设置。

但是好像还不可以
请教高人指导,瑞星防火墙总不能卸吧?不卸的话该如何设置?
同学装的卡巴就不会出现1045错误
在线等待,谢谢!

 

分享到:
评论
2 楼 xuebabybaby 2012-02-09  
3306端口
1 楼 xuebabybaby 2012-02-09  
首先表示感谢楼主的文章,我看了你的文章后把windows的防火墙也把相应端口设置为例外后才可以,楼主也试试。。

相关推荐

    MYSQL安装出现could not start the service mysql error0处理

    MYSQL安装出现could not start the service mysql error0处理

    解决MySQL安装重装时出现could not start the service mysql error:0问题的方法

    主要为大家详细介绍了解决MySQL安装重装时出现could not start the service mysql error:0问题的方法,感兴趣的小伙伴们可以参考一下

    mysql安装失败

    The security settings could not be applied to the database because the connection has failed with the following error. Error Nr. 1045 Access denied for user 'root'@'localhost' (using password: YES) ...

    重装MYSQL数据库前的准备

    重装MYSQL数据库前的准备(卸载、清理注册表)作123者:晒太阳的蛤蟆 日期:2011-03-10 字体大小: 小 中 大 ...安装的时候,有时候会出现could not start the service mysql error:0 提示错误。 解决步骤:

    mysql安装时出现各种常见问题的解决方法

    当各位在安装、重装时出现could not start the service mysql error:0 原因: 卸载mysql时并没有完全删除相关文件和服务,需要手动清除。 安装到最后一步execute时不能启动服务的解决方法: 首先,在管理工具->服务...

    MySQL 重装MySQL后, mysql服务无法启动

    您可能感兴趣的文章:Linux下卸载MySQL数据库MySQL数据库卸载的完整步骤解决MySQL安装重装时出现could not start the service mysql error:0问题的方法重装MySQL最后一步失败的完美解决方案(经验总结)MySQL的重装...

    重装MySQL最后一步失败的完美解决方案(经验总结)

    安装的时候,有时候会出现could not start the service mysql error:0 提示错误。 解决步骤: 1、开始-MySQL-MySQL Server 5.1-MySQL Server Instance Config Wizard-Next-Remove Instance。 2、进入添加删除程序,...

    MySQL 启动报错:File ./mysql-bin.index not found (Errcode: 13)

    Linux下安装初始化完MySQL数据库之后,使用mysqld_safe启动mysql数据库,如下发现,启动失败 [root@SVNServer bin]# ./mysqld_safe –user=mysql& 或 [root@SVNServer bin]# /etc/init.d/mysqld start Starting ...

    MySQL下常见的启动失败与备份失败问题的解决教程

    启动失败 重启服务器后–>重启应用服务(Confluence)–>报错,数据库连接失败(mysql...[root@fisheye data]# service mysql start MySQL server PID file could not be found![失败] Starting MySQL.............. ER

    php.ini-development

    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...

    端口查看工具

    port is filtered by the other CurrPorts options and it's not displayed in the main window, it won't be displayed in the tray balloon.) * Version 1.87: o Improved the 'User Name' column. If you ...

Global site tag (gtag.js) - Google Analytics