zoukankan      html  css  js  c++  java
  • csv导入mysql提示错误[Error Code] 1290

    解决方法:

      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服务。

      

      3、参数secure_file_prive为只读参数,不能在线修改(MySQL 5.7版本)

    root@localhost:mysql.sock [jrtsdev]>set secure_file_priv='/tmp';
    ERROR 1238 (HY000): Variable 'secure_file_priv' is a read only variable

    转自

    http://m.blog.csdn.net/baidu_33621692/article/details/76972288

    参考

    mysql导出查询结果到csv的实现方法_Mysql_脚本之家
    http://www.jb51.net/article/110451.htm

  • 相关阅读:
    触屏时间控制
    小程序 坐标算距离 (copy)
    微信小程序 对接口常用
    conversion function to_char to_number
    南通
    日期 function
    数字 function
    字符串处理函数
    沪通铁路1
    NVL NVL2 COALESCE NULLIF decode
  • 原文地址:https://www.cnblogs.com/paul8339/p/7967152.html
Copyright © 2011-2022 走看看