1.配置文件中將這行注銷“secure-file-priv="C:/ProgramData/MySQL/MySQL Server 5.7/Uploads" ”;很多人添加權限依然不行就是因為這行沒有添加;
注意:加完后一定要重啟mysql;
2.賦權限
grant all on proposaldb.* to root@'localhost' identified by 'zzzz2222.';
set global read_only=off ;/*set global read_only=0;*/
flush privileges;/* SET SESSION binlog_format = 'ROW'; SET GLOBAL binlog_format = 'ROW';*/
select LoginName from sysuser into outfile 'e://output1.csv' fields terminated by ','optionally enclosed by '' lines terminated by '/n';