mysql提示錯誤[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option解決辦法


1.進入mysql查看secure_file_prive的值

$mysql -u root -p

mysql>SHOW VARIABLES LIKE "secure_file_priv";

secure_file_prive=null   -- 限制mysqld 不允許導入導出

secure_file_priv=/tmp/   -- 限制mysqld的導入導出只能發生在/tmp/目錄下

secure_file_priv=' '         -- 不對mysqld 的導入 導出做限制

2.更改secure_file_pri的值

找到my.ini配置文件,加入在mysqld目錄下,secure_file_priv='',重啟mysql服務器即可。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM