一、方式1
MySQL安裝是出現(xiàn)could not start the service mysql error:0 提示錯(cuò)誤,解決方法:
首先,在管理工具->服務(wù)里面將MySQL的服務(wù)給停止,然后打開cmd 進(jìn)入你的MySQL bin目錄下,例如 C:\ProgramFiles\MySQL\MySQL Server 5.0\bin 然后使用如下命令mysqld-nt -remove然后就會(huì)顯示......success!好了下面進(jìn)入添加刪除程序,找到MySQL選擇卸載,記得選擇remove。最后將MySQL目錄刪除,還有數(shù)據(jù)庫的目錄也刪除。
一、方式2
查看服務(wù)中有沒有mysql,如果有將該服務(wù)停掉;
安裝mysql 5.1.33,在運(yùn)行Server Instance Configuration wizard時(shí)的Executeconfigurattion步驟中的第三項(xiàng)Start Service進(jìn)出錯(cuò),錯(cuò)誤提示為Could not start the serviceMySQL (出現(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ù),此時(shí)服務(wù)中已沒有mysql);
重新安裝mysql.安裝后先不要運(yùn)行Server Instance Configuration wizard,重啟后在開始菜單中運(yùn)行該向?qū)?,即可?/span>
MySQL 5.1 安裝過程中報(bào)apply security setting錯(cuò)誤的解決辦法 收藏
Mysql安裝錯(cuò)誤apply security settings 解決方法
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 onyour machine, please make sure you have opened the TCP port 3306 forconnections. Otherwise no client application can connect to the server.After you have opened the port please press [Retry] to apply thesecurity settings.
If you are re-installing after youjust uninstalled the MySQL server please note that the data directorywas not removed automatically. Therefore the old password from your lastinstallation is still needed to connect to the server. In this caseplease select skip now and re-run the Configuration Wizard from thestart menu.
MySQL 5.1 安裝過程中報(bào)apply security setting錯(cuò)誤的解決辦法
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,在運(yùn)行Server InstanceConfiguration wizard時(shí)的Execute configurattion步驟中的第三項(xiàng)StartService進(jìn)出錯(cuò),錯(cuò)誤提示為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ù),此時(shí)服務(wù)中已沒有mysql);
重新安裝mysql.安裝后先不要運(yùn)行Server Instance Configuration wizard,重啟后在開始菜單中運(yùn)行該向?qū)В纯伞?/span>
PS:一種值得參考的方法
---------------------------------------------
msyql安裝到最后一步start service錯(cuò)誤解決方法
1,到控制面板里面先把mysql刪除.
2.到c盤C:\Program Files目錄下把mysql目錄刪除.
3.如果在其他盤還有設(shè)置目錄也要?jiǎng)h除.空目錄也要?jiǎng)h除
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ī))
重裝時(shí)候有必要的話,重啟計(jì)算機(jī),停用IIS,和刪除temp里的臨時(shí)文件.
實(shí)在不行的話,配置mysql時(shí)候,把mysql服務(wù)換個(gè)服務(wù)名.
******************************************************************************************
---------------------------
刪除項(xiàng)時(shí)出錯(cuò)。
---------------------------
無法刪除 LEGACY_MYSQL51: 刪除項(xiàng)時(shí)出錯(cuò)。
---------------------------
確定
---------------------------
解決辦法:注冊表項(xiàng)里右鍵增加administrators所有權(quán)限
安裝mysql時(shí)可能產(chǎn)生cannot create windows service for mysql.error:0錯(cuò)誤,錯(cuò)誤的原因多數(shù)由于重新安裝mysql或者對mydql升級,使用MySQL Configuration Wizard而產(chǎn)生.
解決的方法:到regedit把注冊表,用F3循環(huán)查找“mysql”,全部刪除,重新裝mysql,即可。