問題: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