原文:http://stackoverflow.com/questions/25331190/running-mysql-command-from-bat-file-with-redirection
?
The following workaround could help you:
mysql -u root -e "SOURCE C:\database_setup.sql"
Also the following should work:
type C:\database_setup.sql | mysql -u root