windows下mysql启动脚本

#start mysql 
@echo off
set MySQL="****YOUR PATH****"
set Path=%Path%;%MySQL%\bin
mysqld --defaults-file=%MySQL%\my.ini
echo MySQL start 
#shutdown mysql
@echo off
set MySQL="****YOUR PATH****"  
set Path=%Path%;%MySQL%\bin
mysqladmin -uroot -p**YOUR PASSWORD** shutdown
echo MySQL shutdown OK!

你可能感兴趣的:(windows下mysql启动脚本)