想要把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%';