load data infile '/var/lib/mysql-files/ip_address.csv' into table ip_address fields terminated by ',' optionally enclosed by '"' escaped by '"' lines terminated by '\n';

 

报错:ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

mysql中执行 show variables like '%secure%';  -- 查看secure-file-priv 这个参数只允许导入导出文件的位置,默认为/var/lib/mysql-files/如果要导入的文件不在这个里面就报以上错误;

 

相关文章:

  • 2021-11-20
  • 2021-12-07
  • 2021-07-08
  • 2022-12-23
  • 2021-09-27
  • 2021-10-01
  • 2021-11-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2021-11-29
  • 2021-11-20
  • 2021-11-20
相关资源
相似解决方案