Can't find the file created by outfile in MySQL

后端 未结 7 773
情歌与酒
情歌与酒 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 01:09

    In case anyone on OS X has this problem, mysql installed with homebrew has default output located at /usr/local/var/mysql/database-name/

    0 讨论(0)
提交回复
热议问题