select into outfile不起作用

时间:2012-12-06 19:06:43

标签: mysql select select-into select-into-outfile

为什么以下查询似乎运行但我永远找不到文件outfile?

      select * 
      INTO OUTFILE 'outfile.csv'
      FIELDS TERMINATED by ','
      LINES TERMINATED BY '\n'
      from nGrams

我有MySQL 5.5,我正在运行MySQL Workbench的查询

1 个答案:

答案 0 :(得分:0)

文件'outfile.csv'将出现在与数据库相同的目录中。在Windows上,这是C:\ ProgramData \ MySQL \ MySqlServerX.X \ db_name