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%';

 

posted @ 2019-04-08 18:29  洛圣熙  阅读(1462)  评论(0编辑  收藏  举报