码迷,mamicode.com
首页 > 其他好文 > 详细

secure-file-priv option so it cannot execute this statement

时间:2019-05-30 14:43:50      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:mycat   ike   off   bsp   option   statement   optional   show   err   

mysql> select emp_no,first_name,last_name,gender into outfile ‘/home/mycat/t1.txt‘
-> FIELDS TERMINATED BY ‘,‘ OPTIONALLY ENCLOSED BY ‘"‘ LINES TERMINATED BY ‘\n‘ 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)

 

secure-file-priv option so it cannot execute this statement

标签:mycat   ike   off   bsp   option   statement   optional   show   err   

原文地址:https://www.cnblogs.com/omsql/p/10949280.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!