问题:The MySQL server is running with the --secure-file-priv option so it cannot execute this statement。
解决方案:
(1)cmd登录mysql;show variables like '%secure%';查看 secure-file-priv 当前的值是什么;
(2)在my.ini文件中添加 secure_file_priv =""
(3)补充:
secure_file_priv
1、限制mysqld 不允许导入 | 导出
secure_file_prive=null
2、限制mysqld 的导入 | 导出 只能发生在/tmp/目录下
secure_file_priv=/tmp/
3、不对mysqld 的导入 | 导出做限制
secure_file_priv=""
4、不对mysqld 的导入 | 导出做限制(这个方法是linux下的)
cat /etc/my.cnf
[mysqld]
secure_file_priv
转载请标明出处