MySQL5.7向表导入数据报错"ERROR13(HY000):Can'tgetstatof"-成都快上网建站

MySQL5.7向表导入数据报错"ERROR13(HY000):Can'tgetstatof"

MySQL 5.7向表导入数据时报错:

mysql> load data infile '/var/lib/mysql-files/ADDSubscribers_MSISDN.txt' into table tmp_Subscribers_01 fields enclosed by '"';
ERROR 13 (HY000): Can't get stat of '/var/lib/mysql-files/ADDSubscribers_MSISDN.txt' (Errcode: 13 - Permission denied)

解决方法:
在load语句中加上local参数

mysql> load data local infile '/tmp/ADDSubscribers_MSISDN.txt' into table tmp_Subscribers_01 fields enclosed by '"';
Query OK, 0 rows affected, 10 warnings (0.00 sec)
Records: 10  Deleted: 0  Skipped: 10  Warnings: 10

分享题目:MySQL5.7向表导入数据报错"ERROR13(HY000):Can'tgetstatof"
当前路径:http://kswjz.com/article/pgpgss.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流