@ECHO OFF @set cur= %cd% C: cd C:\Program Files\MySQL\MySQL Server 8.0\bin cd @set input1= @set /p input1=password: :begin mysql -uroot --port=13306 -p%input1% < %cur%/mysqlCreatDB.sql @echo MySql init pause :end