ERROR 13 (HY000): Can't get stat of '/root/home/mysql.txt' (Errcode: 13 - Permission denied)
ERROR 13 (HY000): Can't get stat of '/root/home/mysql.txt' (Errcode: 13 - Permission denied)
load data infile '/home/sam/people.txt' into table person;
开始还以为是/root/mysql/txt文件权限或者是mysql的root用户权限的问题,后来想不对呀,mysql的root用户是超级用户,肯定有权限的,那问题就出在/root/mysql.txt文件的权限上,后来把/root/aaa的权限改成777,执行操作后还是不行。
呵呵,原来是aaa文件所在的文件目录权限的问题,这个好办,换到/tmp/mysql.txt,执行上述操作就成功了: