Export a MySQL table or view to a column name headed CSV file.