解决方法:

  1.进入mysql查看secure_file_prive的值

  mysql>SHOW VARIABLES LIKE "secure_file_priv";

  csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option

  secure_file_prive=null   -- 限制mysqld 不允许导入导出

  secure_file_priv=/tmp/   -- 限制mysqld的导入导出只能发生在/tmp/目录下

  secure_file_priv=' '         -- 不对mysqld 的导入 导出做限制

  

  2.修改secure_file_prive的值

  windows下在my.ini文件 [mysqld]节点 下添加 secure_file_priv='',然后重启mysql服务。

  csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option

  linux下 在 /etc/my.cnf中添加。

相关文章:

  • 2022-12-23
  • 2021-11-06
  • 2022-02-12
  • 2021-08-31
  • 2022-12-23
  • 2021-12-22
  • 2021-08-31
猜你喜欢
  • 2021-09-26
  • 2021-11-22
  • 2021-06-22
  • 2022-12-23
  • 2021-08-10
  • 2021-09-02
  • 2021-04-27
相关资源
相似解决方案