mysql导出到文件错误(err 1290)

感谢大佬:https://blog.csdn.net/u014711094/article/details/78501771

select * into outfile 'g:/temp1.txt' fields terminated by ',' from test1;

[Err] 1290 - The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
show variables like 'secure%';  --查看secure-file-priv

secure_file_priv = ''           --不对限制导入导出

secure_file_prive = null        --不允许导入导出

secure_file_priv = /tmp/        --只能在/tmp/导入导出

--解决方法,[mysqld]下添加
secure_file_priv = ''


补充:

感谢大佬:https://zhidao.baidu.com/question/1371483889923963099.html

在这里插入图片描述

posted @ 2019-11-03 10:12  超级小白龙  阅读(366)  评论(0编辑  收藏  举报