The MySQL server is running with the –secure-file-priv

show variables like '%secure%';
将文件导出路径更改为查询到的secure-file-priv路径下
select * from table where column = 'query' order by id limit 0,10 into file secure_file_path + file_name.csv;
reference

posted @ 2018-03-09 10:02  随便了888  阅读(526)  评论(0编辑  收藏  举报