• 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)

  • 相关阅读:
    hadoop的live node为0
    python其中一个子线程,则退出全部线程,再退出进程
    hbase安装
    hive安装
    手游设备ID
    C++对C的改进(1)
    C++析构函数
    C++构造函数
    Linux0.11内核剖析--内核代码(kernel)--sched.c
    MIME简介
  • 原文地址:https://www.cnblogs.com/omsql/p/10949280.html
Copyright © 2020-2023  润新知