bat脚本之启动MySQL服务
时间:2020-10-22 22:34:44
收藏:0
阅读:33
@echo off :: 获取管理员权限 %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit @echo begin stop mysql server ... net stop mysql TIMEOUT /T 2 @echo begin start mysql server ... net start mysql :: 暂停 :: @pause :: 退出 exit
评论(0)