2018.08.15解决MySQL1290问题

     在MySQL中创建用户的时候总是出现一个错误:Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 0.00023 sec;

解决方法:

一、show variables like '%secure_file_priv%';

 然后把要导入的数据文件放到该文件夹。

二、如果用第一个方法还是报错,停止服务,去C:/ProgramData/MySQL/MySQL Server 5.7/修改my.ini下的seruce-file-priv条目,注释掉或者删掉,重启服务后同样可以进行正常导入导出了。

三、如果前两种方法不行,执行flush privileges;刷新权限。

原文地址:https://www.cnblogs.com/sccwxl/p/9481386.html