在安裝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的那個就應該能成功了。