the security settings could not be applied to the database(mysql安裝error)【簡記】

在安裝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時,老是到最後啓動的時候出錯,出錯內容以下:java


就是最後的Apply security setting過不去mysql

提示:sql

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

Error Nr. 1045this

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

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

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

解決方法:blog

1, 首先卸載MySQLip

2, 再根據這個目錄 C:\Documents and Settings\All Users\Application Data\MySQL,將mysql刪除

3, 從新安裝MySQL 就行了(電腦不用重啓)
---------------------
原文連接:https://blog.csdn.net/dw_java08/article/details/7326040 

相關文章
相關標籤/搜索