@echo off

set /p password="Enter MySQL password: "


for %%f in (路径...\*.sql) do (

    echo Executing: %%f

    mysql -u root -p%password% 数据库名称 < "%%f"

)

echo All SQL files executed.

pause