MySQL卸载后重新安装失败:The security settings could not be applied to the database bacause the ……(彻底卸载MySQL)

MySQL卸载后重新安装失败

错误提示:

the security setting 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 :NO)

if a persion firewall running on yourmachine,please make sure you have opened the TCP port 3306 for connections.Otherwise no can connect to the server.After you have opened the port please press[retry] to apply the settings.

if you are re-installing after you just uninstalled the MySQL server please noted that data directory was not removed automatically .therefore the old password from your last installion is still needed to connect to server .in this case please select skip now and rerun theCinfigiuration Wizard from start menu.

1.应用和功能--卸载安装的MySQL,或者控制面板处卸载

·

2.删除安装路径下的my.ini文件

或者直接删除:C:\Program Files\MySQL

3.在C盘,显示隐藏项目

搜索Mysql,删除Mysql文件夹

基本上就彻底卸载Mysql了

4.然后重新安装mysql就可以了(如果还是不行欢迎留言……)

参考:https://blog.csdn.net/duni2011/article/details/9451231

猜你喜欢

转载自blog.csdn.net/weixin_38917807/article/details/83821011