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


解决方法:

  1.进入mysql查看secure_file_prive的值

  mysql>SHOW VARIABLES LIKE "secure_file_priv";

  

  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服务。

  

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM