![](/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.