mysql select into outfile

 vim /etc/my.cnf

[mysqld]

#開啓outfile
secure_file_priv='/server/mysql_data'

show variables like 'secure_file_priv';

SELECT id FROM xiaodai.`user_info` WHERE DEL_FLAG=0 into outfile "/server/mysql_data/id.txt";

 

 

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

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章