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)


相关文章

这篇文章主要介绍“hive和mysql的区别是什么”,在日常操作中...
这篇“MySQL数据库如何改名”文章的知识点大部分人都不太理解...
这篇文章主要介绍“mysql版本查询命令是什么”的相关知识,小...
本篇内容介绍了“mysql怎么修改字段的内容”的有关知识,在实...
这篇文章主要讲解了“mysql怎么删除unique约束”,文中的讲解...
今天小编给大家分享一下mysql怎么查询不为空的字段的相关知识...