Unable to update security settings. Access denied for user 'root'@'localhost' (using password: YES)


http://niu174420064.iteye.com/blog/875908

 

錯誤說明:

在安裝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文件夾,選擇:工具——文件夾選項——查看——選擇顯示所有文件和文件夾。

 

 

關鍵在於刪除原來的目錄 C:\Documents and Settings\All Users\Application Data\MySQL

然后重新安裝會出現:

1UD82L})88]}YJO6TR9B`2G


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM