zoukankan      html  css  js  c++  java
  • secure-file-priv option so it cannot execute this statement

    mysql> select emp_no,first_name,last_name,gender into outfile '/home/mycat/t1.txt'
    -> FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY ' ' from employees.t_emp ;
    ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

    mysql> show variables like '%secure%';
    +--------------------------+-------+
    | Variable_name | Value |
    +--------------------------+-------+
    | require_secure_transport | OFF |
    | secure_auth | ON |
    | secure_file_priv | NULL |
    +--------------------------+-------+
    3 rows in set (0.00 sec)

    修改my.cnf 重启mysql

    mysql> show variables like '%secure%';
    +--------------------------+--------------+
    | Variable_name | Value |
    +--------------------------+--------------+
    | require_secure_transport | OFF |
    | secure_auth | ON |
    | secure_file_priv | /home/mysql/ |
    +--------------------------+--------------+
    3 rows in set (0.00 sec)

  • 相关阅读:
    HTML页面下echarts图形绘制
    nth-child的运用
    黑客零做起
    回溯法-背包问题
    回溯法-迷宫问题
    ECMA概述
    微信小程序-蓝牙
    JavaScript实现千位分隔符
    Vue 就地复用策略
    内联函数inline
  • 原文地址:https://www.cnblogs.com/omsql/p/10949280.html
Copyright © 2011-2022 走看看