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


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~

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM