`
aigo
  • 浏览: 2539803 次
  • 性别: Icon_minigender_1
  • 来自: 宜昌
社区版块
存档分类
最新评论

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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics