帮助文档>数据库类 > mysql导入数据出现Errcode: 2 - No such file or directory错误信息

mysql导入数据出现Errcode: 2 - No such file or directory错误信息

发布时间:2021-12-20 11:31

在导入数据出现这个错误一般是因为地址里面的斜杠使用错误。比如下面

load data local infile 'D:\road.txt'into table roadcd fields terminated by '\t';
      我参考许多资料,这里的地址都是使用单斜杠,但我却出现下面的错误信息:
oad.txt' not found (Errcode: 2 - No such file or directory)


    如果你和我们错误信息一样的话,那就把单斜杠(\)改为双斜杠(\\)试试;

 load data local infile 'D:\\road.txt'into table roadcd fields terminated by '\t';

     这样的话就OK了,数据成功导入

本文导读

客户热线:037125966675

客户服务中心
云产品 服务器 合 作                  Skype