解决MySQL下把结果导出到文件权限不足问题

select ... into outfile '..' 权限问题

在MySQL下把结果导出到文件,总是权限不足。

mysql> select * into outfile 'e:/mysql/i0812.txt' fields terminated by '|' lines
terminated by '\r\n' from samtest;
ERROR 1 (HY000): Can't create/write to file 'e:\mysql\i0812.txt' (Errcode: 2)

解决MySQL下把结果导出到文件权限不足问题

解决方法,赋权:

mysql> grant file on *.* to root@localhost;

 

解决MySQL下把结果导出到文件权限不足问题

相关文章:

  • 2022-12-23
  • 2021-07-11
  • 2021-07-14
  • 2021-09-24
  • 2023-03-29
  • 2021-12-29
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2021-04-22
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
相关资源
相似解决方案