Can't find the file created by outfile in MySQL

后端 未结 7 790
情歌与酒
情歌与酒 2020-12-08 00:39

I am using the following query to create a CSV file

SELECT email INTO OUTFILE \"mydata.csv\"
FIELDS TERMINATED BY \',\' OPTIONALLY ENCLOSED BY \'\"\'
LINES          


        
7条回答
  •  一生所求
    2020-12-08 00:45

    I found my INTO OUTFILE files, created with the following command

    select name from users into outfile "name.csv"

    at the following location

    C:\ProgramData\MySQL\MySQL Server 5.6\data\name.csv

    This is probably the default location, as I've never changed anything.

提交回复
热议问题