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