感谢大佬: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