网站建设知识
mysql导出数据时出现--secure-file-priv问题的解决办法
2025-07-22 11:13  点击:0

mysql导出数据时出现--secure-file-priv问题的解决办法,在进行数据导出的时候出现--secure-file-priv option so it cannot execute this statement

问题时,修改/etc/mysql/mysql.conf.d/mysqld.cnf文件,如图

在末尾添加一句secure_file_priv="/"即可将数据导出到任意目录