运行Mysql批处理文件时出错
我的计算机上有一个 .sql 文件,位于 C:\Users\Owner\Documents\file.sql (Windows Vista) 仅创建一个数据库和一个简单的表。 在 mysql 的命令行中,我输入
source C:\Users\Owner\Documents\newbie.sql;
查询似乎工作正常,但在它向我显示成功创建的表之前,它输出以下错误,这些错误似乎与我输入文件名的方式有关:
ERROR:
Unknown command '\U'.
ERROR:
Unknown command '\O'.
ERROR:
Unknown command '\D'.
ERROR:
Unknown command '\n'.
请原谅新手错误...修复是什么?
谢谢!
I have a .sql file on my computer at C:\Users\Owner\Documents\file.sql
(Windows Vista) that just creates a database and a simple table within.
In mysql at the command line i enter
source C:\Users\Owner\Documents\newbie.sql;
the query seems to work ok but just before it shows me the successfully created table it outputs the following errors that seem to be related to how i entered the file name:
ERROR:
Unknown command '\U'.
ERROR:
Unknown command '\O'.
ERROR:
Unknown command '\D'.
ERROR:
Unknown command '\n'.
Pardon the newbie error...whats the fix?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在文件路径中使用正斜杠
/
代替反斜杠\
:或将其放在双引号之间 (
"
)Try using forward slash
/
in place of back slash\
in file path:or put it between double quotes (
"
)