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

相关文章
相关标签/搜索