简体   繁体   中英

how to change the default path of mysql (into outfile) csv path

i have installed WAMP and using mysql, however using sql query (into outfile) and storing the csv file on default location under wamp folder/bin/mysql/data folder.

I want to override this location and want to store the csv file on any location.

Please let me know how to do it ?

选择a,b,a + b到输出文件'/tmp/result.txt'中,以','可选地以'“'封闭,由test_table以'\\ n'终止的行;

In window environment

select * into outfile 'c:/resources.txt' fields terminated by ',' optionally enclosed by '"' lines
terminated by '\n' from resources;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM