微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ERROR 1290 (HY000) 解决办法

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)


版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐