ITPub博客

首页 > 数据库 > MySQL > ERROR 1290 (HY000) 解决办法

ERROR 1290 (HY000) 解决办法

原创 MySQL 作者:孤竹星 时间:2018-08-20 17:04:15 0 删除 编辑

select * into outfile '/home/update_testdbtest.txt' from update_test;

ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

mysql> select * from update_test;

+------+-------+

| id   | name  |

+------+-------+

|    1 | hello |

|    2 | world |

+------+-------+

2 rows in set (0.00 sec)


mysql> show variables like '%secure%'

    -> ;

+--------------------------+-----------------------+

| Variable_name            | Value                 |

+--------------------------+-----------------------+

| require_secure_transport | OFF                   |

| secure_auth              | ON                    |

| secure_file_priv         | /var/lib/mysql-files/ |

+--------------------------+-----------------------+

3 rows in set (0.01 sec)


mysql> select * into outfile '/var/lib/mysql-files/update_testdbtest.txt' from update_test;

Query OK, 2 rows affected (0.00 sec)


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28282660/viewspace-2212396/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-01-22

  • 博文量
    96
  • 访问量
    298366