mysql执行outfile操作出现The MySQL server is running with the --secure-file-priv.....
路径:/etc/mysql/conf.d/mysql.cnf
显示只读无法修改(PS:内容为修改过后的,修改前为[mysql])
使用命令vim /etc/mysql/conf.d/mysql.cnf修改发现无权限,在vim前加sudo,修改后需要重新启动mysql服务:service mysql restart。
查看导出txt文件:find / -name 文件名.txt
我的在/var/lib/mysql/sakila/文件名.txt。