批量运行mysql

for file in *.sql do echo "running $file..." mysql -uusername -ppassword -hlocalhost -P3306