MySQL安装出现的问题:the security settings could not be applied to 。。。 原因是原来的东西没有卸载干净

在安装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。卸载已经安装的MySQL3。重启,手动全部删除旧的安装文件夹,尤其是windows\my.ini
或者把MYSQL文件夹全部删除!如果你要保留数据库的话最好是备份先4。再去看看服务进程里有没有mysql,如果有,右击-属性-启动类型-禁用
5。安装新的版本,最好改变安装路径。等到出现选择启动win服务的下拉框时候,选41的那个就应该能成功了。
原文地址:https://www.cnblogs.com/haoliansheng/p/2717932.html