我有一个包含以下没有这样的文件或目录在MySQL的SQL脚本
LOAD DATA LOCAL INFILE '.\\datafiles\\customers.txt' INTO TABLE Customers`
我打开和MySQL的工作台运行它,我得到以下错误的SQL脚本:
Error Code: 2. File '.\datafiles\customers.txt' not found
(Errcode: 2 - No such file or directory)
在哪里我应该把文件customers.txt
根据'.\datafiles\customers.txt'
?
我使用Windows 7和我尝试了以下placse:
C:\datafiles
C:\temp\datafiles
C:\tem\datafiles
C:\Users\michael\datafiles
''\\\是正确的,因为当我将其更改为“C:\\ datafiles \\ customers.txt”,它工作正常。 – michdraft
好的很酷,但无论哪种方式,你应该使用完整的路径 –
我可以问为什么你使用双\ \? –