Windows 手動建立 服務

使用命令來建立mysql

1. WIN + R  打開運行窗口,輸入cmdsql

2. 輸入 sc create ServerName binpath= "E:\MySql5.5\bin\mysqld.exe"  等號後有空格
安全

     回車時系統(360,電腦管家等)會有安全框彈出提示,選擇容許,提示建立成功
spa

sc create ServerName binpath= "E:\MySql5.5\bin\mysqld.exe" 

       

 3. 啓動服務  sc start ServerNamecode

sc start ServerName

4.WIN + R  打開運行窗口,輸入services.msc  ,能夠看到你剛新建的服務,右鍵選擇屬性改爲自動
blog

5.刪除服務   sc delete ServerName  其實刪除後就是禁用cmd

sc delete ServerName

相關文章
相關標籤/搜索