当前位置: 代码迷 >> MySQL >> windows bat脚本中小于号被回心导致无法使用mysql导入命令
  详细解决方案

windows bat脚本中小于号被回心导致无法使用mysql导入命令

热度:92   发布时间:2016-05-05 17:08:22.0
windows bat脚本中小于号被转意导致无法使用mysql导入命令

原文: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
  相关解决方案