共計 3734 個字符,預計需要花費 10 分鐘才能閱讀完成。
行業資訊
數據庫
Mysql 安裝時出現 could not start the service mysql error:0 怎么辦
這篇文章主要講解了“Mysql 安裝時出現 could not start the service mysql error:0 怎么辦”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著丸趣 TV 小編的思路慢慢深入,一起來研究和學習“Mysql 安裝時出現 could not start the service mysql error:0 怎么辦”吧!
MYSQL 安裝出現 could not start the service mysql error:0 處理
當各位在安裝、重裝時出現 could not start the service mysqlerror:0 的錯誤時,可以嘗試下面兩種方法。
一、方式 1
MySQL 安裝是出現 could not start the service mysql error:0 提示錯誤,解決方法:
首 先,在管理工具 - 服務里面將 MySQL 的服務給停止,然后打開 cmd 進入你的 MySQL bin 目錄下,例如 C:\Program Files\MySQL\MySQL Server 5.0\bin 然后使用如下命令 mysqld-nt -remove 然后就會顯示 ……success! 好了下面進入添加刪除程序,找到 MySQL 選擇卸載,記得選擇 remove。最后將 MySQL 目錄刪除,還有數 據庫的目錄也刪除。
一、方式 2
查看服務中有沒有 mysql, 如果有將該服務停掉;
安裝 mysql 5.1.33, 在運行 ServerInstance Configuration wizard 時的 Execute configurattion 步驟中的第三項 Start Service 進出錯, 錯誤提示為 Could not start the service MySQL (出現這種情況一般是因為裝過 mysql,卸載不干凈造成的。卸載后重啟后再重裝。注意看下服務,如果未能卸載,可以用 mysqld-nt -remove 卸載)。
在控制面板中運行添加刪除程序,將 mysql 卸載;
卸載后打開注冊表,查看 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 下的鍵值,如果有相關 mysql 鍵值 (mysql、mysqladmin) 則刪掉,即可;
重啟,將 mysql 的安裝殘余目錄刪掉 (查看服務,此時服務中已沒有 mysql);
重新安裝 mysql. 安裝后先不要運行 ServerInstance Configuration wizard,重啟后在開始菜單中運行該向導,即可。
windowsxp 系統 mysql-5.0.81
提示:1045 access denied for user root @ localhost using password yes
MySQL 5.1 安裝過程中報 apply security setting 錯誤的解決辦法 收藏
Mysql 安裝錯誤 apply security settings 解決方法
The securitysettings could not be applied to the database because the connection has failedwith the following error.
Error Nr. 1045
Access denied foruser root @ localhost (using password: YES)
If a personalfirewall is running on your machine, please make sure you have opened the TCPport 3306 for connections. Otherwise no client application can connect to theserver. After you have opened the port please press [Retry] to apply thesecurity settings.
If you arere-installing after you just uninstalled the MySQL server please note that thedata directory was not removed automatically. Therefore the old password fromyour last installation is still needed to connect to the server. In this caseplease 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\ApplicationData\MySQL
3, 重新安裝 MySQL 就 OK 啦
——————————————
[MySQL] Could notstart the service MySQL 解決方法
安 裝 mysql 5.1.33, 在運行 ServerInstance 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 InstanceConfiguration 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 createwindows service for mysql.error:0 錯誤, 錯誤的原因多數由于重新安裝 mysql 或者對 mydql 升級, 使用 MySQLConfiguration Wizard 而產生.
解決的方法:到 regedit 把注冊表,用 F3 循環查找“mysql”, 全部刪除,重新裝 mysql,即可。
感謝各位的閱讀,以上就是“Mysql 安裝時出現 could not start the service mysql error:0 怎么辦”的內容了,經過本文的學習后,相信大家對 Mysql 安裝時出現 could not start the service mysql error:0 怎么辦這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是丸趣 TV,丸趣 TV 小編將為大家推送更多相關知識點的文章,歡迎關注!