Java学习者论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

手机号码,快捷登录

恭喜Java学习者论坛(https://www.javaxxz.com)已经为数万Java学习者服务超过8年了!积累会员资料超过10000G+
成为本站VIP会员,下载本站10000G+会员资源,购买链接:点击进入购买VIP会员
JAVA高级面试进阶视频教程Java架构师系统进阶VIP课程

分布式高可用全栈开发微服务教程

Go语言视频零基础入门到精通

Java架构师3期(课件+源码)

Java开发全终端实战租房项目视频教程

SpringBoot2.X入门到高级使用教程

大数据培训第六期全套视频教程

深度学习(CNN RNN GAN)算法原理

Java亿级流量电商系统视频教程

互联网架构师视频教程

年薪50万Spark2.0从入门到精通

年薪50万!人工智能学习路线教程

年薪50万!大数据从入门到精通学习路线年薪50万!机器学习入门到精通视频教程
仿小米商城类app和小程序视频教程深度学习数据分析基础到实战最新黑马javaEE2.1就业课程从 0到JVM实战高手教程 MySQL入门到精通教程
查看: 1653|回复: 0

安装MySQL时出现the security settings could not be applied to the databas

[复制链接]

该用户从未签到

发表于 2011-10-10 18:44:06 | 显示全部楼层 |阅读模式
在装mysql时,总是到最后启动的时候出错,出错内容如下:



就是最后的Apply security setting过不去



提示:

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.

解决方法:

1, 卸载MySQL

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

3, 重新安装MySQL 就好了

如何你C:\Documents and Settings\All Users下没有Application Data文件夹,选择:工具——文件夹选项——查看——选择显示所有文件和文件夹



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



在安装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)
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.
解决方法:
1, 控制面板卸载MySQL
2, 删除目录 C:\Documents and Settings\All Users\Application Data\MySQL
3.只有彻底删除上次install information之后才能安装,为确保起见,去搜索其他的mysql内容,你也有可能在别的地方安装过mysql的。
3, 重新安装MySQL 就好了
如何你C:\Documents and Settings\All Users下没有Application Data文件夹,选择:工具——文件夹选项——查看——选择显示所有文件和文件夹。
问题解决!


这个问题我出现了20次了 ,呵呵 现在总算是知道原因了
原因是这样的:你卸载不完全
你是不是安装过mysql的其它版本?如果是,要卸载,而且卸载之前要先停止系统进程里的mysql服务,再重启,再安装新的版本才行。
目前给你提供一点解决办法供参考
1。打开系统服务进程:右击我的电脑-管理-服务和应用程序-服务,找到mysql,包括老版本和新版本的,右击,全部停用
2。卸载已经安装的MySQL
3。重启,手动全部删除旧的安装文件夹,尤其是windows\my.ini
或者把MYSQL文件夹全部删除!如果你要保留数据库的话最好是备份先
4。再去看看服务进程里有没有mysql,如果有,右击-属性-启动类型-禁用
5。安装新的版本,最好改变安装路径。等到出现选择启动win服务的下拉框时候,选41的那个就应该能成功了。  

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

该用户从未签到

发表于 2011-10-11 12:30:05 | 显示全部楼层
这个问题很久绝啊。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Java学习者论坛 ( 声明:本站资料整理自互联网,用于Java学习者交流学习使用,对资料版权不负任何法律责任,若有侵权请及时联系客服屏蔽删除 )

GMT+8, 2024-5-21 21:42 , Processed in 0.382154 second(s), 46 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表