一、建立一个以bat为扩展名的文档
二、写入程序
@echo OFF e: cd E:\xampp\mysql\bin\ mysql.exe -P 3306 -h localhost -u root -p cmd