溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Mysql安裝時出現(xiàn)could not start the service mysql error:0怎么辦

發(fā)布時間:2021-08-20 01:10:42 來源:億速云 閱讀:113 作者:chen 欄目:數(shù)據(jù)庫

這篇文章主要講解了“Mysql安裝時出現(xiàn)could not start the service mysql error:0怎么辦”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“Mysql安裝時出現(xiàn)could not start the service mysql error:0怎么辦”吧!

MYSQL安裝出現(xiàn)could not start the service mysql error:0處理
當(dāng)各位在安裝、重裝時出現(xiàn)could not start the service mysqlerror:0的錯誤時,可以嘗試下面兩種方法。
一、方式1
MySQL安裝是出現(xiàn)could not start the service mysql error:0 提示錯誤,解決方法:
首 先,在管理工具->服務(wù)里面將MySQL的服務(wù)給停止,然后打開cmd 進(jìn)入你的MySQL bin目錄下,例如 C:\Program Files\MySQL\MySQL Server 5.0\bin 然后使用如下命令mysqld-nt -remove 然后就會顯示......success!好了下面進(jìn)入添加刪除程序,找到MySQL選擇卸載,記得選擇remove。最后將MySQL目錄刪除,還有數(shù) 據(jù)庫的目錄也刪除。
一、方式2
查看服務(wù)中有沒有mysql,如果有將該服務(wù)停掉;
安裝mysql 5.1.33,在運(yùn)行ServerInstance Configuration wizard時的Execute configurattion步驟中的第三項(xiàng)Start Service進(jìn)出錯,錯誤提示為Could not start the service MySQL (出現(xiàn)這種情況一般是因?yàn)檠b過mysql,卸載不干凈造成的。卸載后重啟后再重裝。注意看下服務(wù),如果未能卸載,可以用mysqld-nt -remove卸載)。
在控制面板中運(yùn)行添加刪除程序,將mysql卸載;
卸載后打開注冊表,查看HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services下的鍵值,如果有相關(guān)mysql鍵值(mysql、mysqladmin)則刪掉,即可;
重啟,將mysql的安裝殘余目錄刪掉 (查看服務(wù),此時服務(wù)中已沒有mysql);
重新安裝mysql.安裝后先不要運(yùn)行ServerInstance Configuration wizard,重啟后在開始菜單中運(yùn)行該向?qū)?,即可?br/>windowsxp系統(tǒng) 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,在運(yùn)行ServerInstance Configuration wizard時的Execute configurattion步驟中的第三項(xiàng)Start Service進(jìn)出錯,錯誤提示為Could not start the service MySQL (出現(xiàn)這種情況一般是因?yàn)檠b過mysql,卸載不干凈造成的。卸載后重啟后再重裝。注意看下服務(wù),如果未能卸載,可以用mysqld-nt -remove卸載)。
具體方法如下:
查看服務(wù)中有沒有mysql,如果有將該服務(wù)停掉;
在控制面板中運(yùn)行添加刪除程序,將mysql卸載;
卸載后打開注冊表,查看HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 下的鍵值,如果有相關(guān)mysql鍵值(mysql、mysqladmin)則刪掉,即可;
重啟,將mysql的安裝殘余目錄刪掉 (查看服務(wù),此時服務(wù)中已沒有mysql);
重新安裝mysql.安裝后先不要運(yùn)行Server InstanceConfiguration wizard,重啟后在開始菜單中運(yùn)行該向?qū)?,即可?br/>PS:一種值得參考的方法
---------------------------------------------
msyql安裝到最后一步start service錯誤解決方法
1,到控制面板里面先把mysql刪除.
2.到c盤C:\Program Files目錄下把mysql目錄刪除.
3.如果在其他盤還有設(shè)置目錄也要刪除.空目錄也要刪除
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循環(huán)查找“mysql”)
5.如果任務(wù)管理器里有關(guān)mysql內(nèi)容也刪除
6,把防火墻關(guān)了
7,重新裝mysql(這里我沒有重啟計(jì)算機(jī))
重裝時候有必要的話,重啟計(jì)算機(jī),停用IIS,和刪除temp里的臨時文件.
實(shí)在不行的話,配置mysql時候,把mysql服務(wù)換個服務(wù)名.
******************************************************************************************
---------------------------
刪除項(xiàng)時出錯。
---------------------------
無法刪除 LEGACY_MYSQL51: 刪除項(xiàng)時出錯。
---------------------------
確定 
---------------------------
解決辦法:注冊表項(xiàng)里右鍵增加administrators所有權(quán)限
安裝mysql時可能產(chǎn)生cannot createwindows service for mysql.error:0錯誤,錯誤的原因多數(shù)由于重新安裝mysql或者對mydql升級,使用MySQLConfiguration Wizard而產(chǎn)生.
解決的方法:到regedit把注冊表,用F3循環(huán)查找“mysql”,全部刪除,重新裝mysql,即可。

感謝各位的閱讀,以上就是“Mysql安裝時出現(xiàn)could not start the service mysql error:0怎么辦”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對Mysql安裝時出現(xiàn)could not start the service mysql error:0怎么辦這一問題有了更深刻的體會,具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識點(diǎn)的文章,歡迎關(guān)注!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI