1. 程式人生 > >解決安裝mysql時出現的三種問題

解決安裝mysql時出現的三種問題

.com 新的 徹底 win span 9.png 權限 file -1

MySQL v5.0.96 for windows 安裝版 鏈接:http://pan.baidu.com/s/1slmE2k9 密碼:tadp

MySQLAdministratortool1.1.12 鏈接:http://pan.baidu.com/s/1sl2n4Xv 密碼:2al6

一、解決安裝mysql時出現 "A Windows service with the name MySQL already exists" 的方法


原因:之前安裝過mysql未卸載幹凈。

1、按 Ctrl+Shift+Esc,可在 Windows任務管理器--服務 中查看,若發現是未卸載幹凈導致,win+r+cmd 進入Dos窗口 輸入命令 “sc delete mysql”

技術分享

2、若出現 “[SC] OpenService 失敗 5:拒絕訪問” ,則是權限不夠, 按 win+x+a 再輸入上面命令即可。

技術分享

二、提示 “Configuration file template” 錯誤

原因:安裝路徑不得出現中文,更改安裝路徑即可

技術分享

三、出現“Could not start theservice MySQL”

原因:註冊表中有關MySQL的東西可能刪除的不徹底

技術分享

1、win+r+regedit,打開註冊表


2、把註冊表
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
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl001t\Services\MYSQL
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl002\Services\MYSQL
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSQL
C:\Documents and Settings\All Users\Application Data\MySQL
相關目錄下有相關mysql鍵值(mysql、mysqladmin)都刪掉

3、用360清理一下註冊表

4、若你自己感覺都已經刪幹凈了,但安裝時還是一直出錯,那就別糾結直接換一個新的service name就好

技術分享

ps:由於是小白一枚,今天第一次安裝mysql就遇到了各種各樣的問題,發現自己這運氣也是夠可以的 T-T55555~

解決安裝mysql時出現的三種問題