MYSQL安裝與卸載(一)
系統:win10(其餘版本系統不在本次內容)
MySQL安裝主流分爲兩種:msi,zip
Zip:壓縮版,這須要配置init文件,而後經過win+R 進入cmd控制檯進行操做(本次 以msi版本爲主,後續會有相關博客補充完善)
![wps1 wps1](http://static.javashuo.com/static/loading.gif)
msi:這是安裝程序,雙擊便可開始安裝,安裝提示進行便可,本次安裝的版本是MYSQL5.7
下面使用圖文介紹MYSQL的安裝:
![wps2 wps2](http://static.javashuo.com/static/loading.gif)
![wps3 wps3](http://static.javashuo.com/static/loading.gif)
默認的數據版本過高咱們選擇5.7安裝
![wps4 wps4](http://static.javashuo.com/static/loading.gif)
安裝:雙擊下載成功的文件
![wps9 wps9](http://static.javashuo.com/static/loading.gif)
![wps10 wps10](http://static.javashuo.com/static/loading.gif)
![wps11 wps11](http://static.javashuo.com/static/loading.gif)
![wps12 wps12](http://static.javashuo.com/static/loading.gif)
![wps13 wps13](http://static.javashuo.com/static/loading.gif)
一直next
![wps14 wps14](http://static.javashuo.com/static/loading.gif)
![wps15 wps15](http://static.javashuo.com/static/loading.gif)
服務器專用,端口號通常不改,3306
![wps16 wps16](http://static.javashuo.com/static/loading.gif)
設置密碼 注:密碼長度大於等於4
![wps17 wps17](http://static.javashuo.com/static/loading.gif)
![wps18 wps18](http://static.javashuo.com/static/loading.gif)
![wps19 wps19](http://static.javashuo.com/static/loading.gif)
![wps20 wps20](http://static.javashuo.com/static/loading.gif)
都檢測經過後 點擊Finish 而後繼續Next 最後Finish即安裝完成
MYSQL卸載
第一步:進入控制面板找到下面連個文件進行卸載
![wps21 wps21](http://static.javashuo.com/static/loading.gif)
第二步:進入任務管理,找到MYSQL開頭的服務所有中止,找到MYSQL定義的安裝位置刪除MYSQL文件
![wps22 wps22](http://static.javashuo.com/static/loading.gif)
第三步:打開隱藏顯示,在C盤的根目錄裏面,有一個ProgramData文件 ,文件裏面有一個MYSQL文件,把這個文件也刪除
![wps23 wps23](http://static.javashuo.com/static/loading.gif)
![wps24 wps24](http://static.javashuo.com/static/loading.gif)
第四步:按win+R鍵,運行「regedit」文件,打開註冊表。
刪除HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL文件夾
刪除HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL文件夾。
刪除HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL的文件夾。
若是沒有相應的文件夾,就不用刪除了
若是遇到MYSQL服務未啓動,能夠使用管理員權限的Powershell ,
執行:net start 數據庫名
若是想要中止MYSQL服務:
執行:net stop 數據庫名
歡迎關注本站公眾號,獲取更多信息