output as csv

select * from tag limit 10 into outfile "/tmp/tag10.csv" fields terminated by ',';

ただし出力先のアクセス権限がだめだとエラーがでる