windows配置mysql權限


 

想要把csv里面的數據導入mysql,報錯。用命令      show variables like '%secure%';   

[2019-04-08 17:04:36] [HY000][1290] The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
show variables like '%secure%';

 

 

更改my.ini文件,在[mysqld]下加上一行secure_file_priv="C:\Users\Administrator.BF-20180724WWHY\Desktop",引號中間是存放的文件夾,我設置為桌面

需要注意的是,要先把mysql停止再重新開啟,新保存的my.ini才能生效

重新查看show variables like '%secure%';

 


免責聲明!

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



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