一只皮皮阳
年轻人,多读书!

问题: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

posted on 2017-10-25 17:38  一只皮皮阳  阅读(2745)  评论(0编辑  收藏  举报