注册:
mysqld --install 服务名 --defaults-file="C:Mysqlmysql-5.7my.ini"
删除
sc delete 服务名
停止服务
sc queryex myservicename
taskkill /f /pid 上面显示的PID