Mysql安裝錯誤apply security settings ,出現 connection error Error1045

來源:互聯網
上載者:User
Mysql安裝錯誤apply security settings ,出現 connection error Error1045,

錯誤類型大概分以下幾種:

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

Error Nr. 2003

Can't connect to MySQL server on 'localhost' (10061)

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.

*****************************************************************************************

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.

MySQL 5.1 安裝過程中報apply security setting錯誤的解決辦法

1, 卸載MySQL

2, 刪除目錄 C:\Documents and Settings\All Users\Application Data\MySQL

3, 重新安裝MySQL 就 OK 啦

------------------------------------------

[MySQL] Could not start the service MySQL 解決方案

安裝mysql 5.1.33,在運行Server Instance Configuration wizard時的Execute configurattion步驟中的第三項Start Service進出錯,錯誤提示為Could not start the service MySQL (出現這種情況一般是因為裝過mysql,卸載不乾淨造成的。卸載後重啟後再重裝。注意看下服務,如果未能卸載,可以用mysqld-nt -remove卸載)。

具體方法如下:

查看服務中有沒有mysql,如果有將該服務停掉;

在控制台中運行添加刪除程式,將mysql卸載;

卸載後開啟註冊表,查看HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 下的索引值,如果有相關mysql索引值(mysql、mysqladmin)則刪掉,即可;

重啟,將mysql的安裝殘餘目錄刪掉 (查看服務,此時服務中已沒有mysql);

重新安裝mysql.安裝後先不要運行Server Instance Configuration wizard,重啟後在開始菜單中運行該嚮導,即可。

PS:一種值得參考的方法

---------------------------------------------

msyql安裝到最後一步start service錯誤解決方案

1,到控制台裡面先把mysql刪除.

2.到c盤C:\Program Files目錄下把mysql目錄刪除.

3.如果在其他盤還有設定目錄也要刪除.空目錄也要刪除

4.到regedit把註冊表

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL

有的話,全部刪除!

(技巧:用F3迴圈尋找“mysql”)

5.如果工作管理員裡有關mysql內容也刪除

6,把防火牆關了

7,重新裝mysql(這裡我沒有重啟電腦)

重裝時候有必要的話,重啟電腦,停用IIS,和刪除temp裡的臨時檔案.

實在不行的話,配置mysql時候,把mysql服務換個服務名.

******************************************************************************************

---------------------------

刪除項時出錯。

---------------------------

無法刪除 LEGACY_MYSQL51: 刪除項時出錯。

---------------------------

確定  

---------------------------

解決辦法:登錄機碼裡右鍵增加administrators所有許可權

安裝mysql時可能產生cannot create windows service for mysql.error:0錯誤,錯誤的原因多數由於重新安裝mysql或者對mydql升級,使用MySQL Configuration Wizard而產生.

解決的方法:到regedit把註冊表,用F3迴圈尋找“mysql”,全部刪除,重新裝mysql,即可

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.