Mysql 查询出来的数据进行导出 1. 查看 MySQL 自定义的输出路径2. 输出文件的命令 1. 查看 MySQL 自定义的输出路径 show variables like '%secure%'; 结果 如果自定义其他路径: 报如下错误 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 2. 输出文件的命令 SELECT * from `mysql`.`user` into outfile "/var/lib/mysql-files/mysql.txt";