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,执行上述操作就成功了:

相关文章:

  • 2021-10-09
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-02-27
  • 2022-12-23
猜你喜欢
  • 2021-06-14
  • 2021-12-19
  • 2021-07-29
  • 2021-12-01
  • 2021-12-15
  • 2021-06-24
  • 2022-12-23
相关资源
相似解决方案