mysql导出导入数据无权限


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM