您的位置:首页 > 数据库 > SQL

csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option 解决方法【转】

2017-12-03 20:30 976 查看
解决方法:

  1.进入mysql查看secure_file_prive的值

  mysql>SHOW VARIABLES LIKE "secure_file_priv";

  


  secure_file_prive=null -- 限制mysqld 不允许导入导出

  secure_file_priv=/tmp/ -- 限制mysqld的导入导出只能发生在/tmp/目录下

  secure_file_priv=' ' -- 不对mysqld 的导入 导出做限制

  

  2.修改secure_file_prive的值

  windows下在my.ini文件 [mysqld]节点 下添加 secure_file_priv='',然后重启mysql服务。

  


转自
http://m.blog.csdn.net/baidu_33621692/article/details/76972288
参考

mysql导出查询结果到csv的实现方法_Mysql_脚本之家 http://www.jb51.net/article/110451.htm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐