开发者

Error when running Mysql batch file

开发者 https://www.devze.com 2023-03-03 13:10 出处:网络
I have a .sql file on my computer at C:\\Users\\Owner\\Documents\\file.sql (Windows Vista) that just creates a database a开发者_运维知识库nd a simple table within.

I have a .sql file on my computer at C:\Users\Owner\Documents\file.sql (Windows Vista) that just creates a database a开发者_运维知识库nd 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!


Try using forward slash / in place of back slash \ in file path:

C:/Users/Owner/Documents/newbie.sql

or put it between double quotes (")

0

精彩评论

暂无评论...
验证码 换一张
取 消