今天导入数据库出现如此问题:
mysql> LOAD DATA INFILE '/mysql/table.sql' INTO TABLE mytb;
ERROR 13 (HY000): Can't get stat of '/mysql/table.sql' (Errcode: 13)
mysql> LOAD DATA INFILE '/tmp/mysql/table.sql' INTO TABLE mytb;
解决:这是权限的问题,因此将其改到/tmp/mysql/table.sql,问题即可解决
阅读(3803) | 评论(0) | 转发(0) |