欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

the security settings could not be applied to the database(mysql安装error)【简记】

程序员文章站 2022-05-29 11:37:54
在安装mysql时,出现“The security settings could not be applied to the database because the connection has failed with the following error. Error Nr. 1045 Acc ......

在安装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时,总是到最后启动的时候出错,出错内容如下:


就是最后的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,将mysql删除

3, 重新安装mysql 就好了(电脑不用重启)
---------------------
原文链接: