![](/img/trans.png)
[英]MySQL LOAD DATA Error (Errcode: 2 - "No such file or directory")
[英]Trying to load text file in mysql but error is no such file or directory
我正在尝试使用load命令将(a.txt)文件加载到mysql中,但是即使指定路径中存在no such file or directory
,它也no such file or directory
?
load data local infile 'F:\makarand\a.txt'
into TABLE file;
load data local infile 'F:\makarand\a.txt'
into TABLE file;
我已经尝试过通过删除本地单词来解决这个问题,但是问题仍然存在
它说:
Error No 2:No such file or directory
File
是MYSQL中的受保护名称
https://dev.mysql.com/doc/refman/8.0/zh-CN/keywords.html
它现在需要一个文件名,而不是您建议的表。 重命名表(使用前缀或后缀)或尝试在查询中将其引用。 不幸的是,这类事情发生了,因此我总是在表上使用前缀,以确保我不会遇到此类事情。
//编辑//
另请参阅本主题。 与Windows或Linux无关
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.