mysql2csv Export a MySQL table or view to a column name headed CSV file. mysql2csv.rb {database} {username} {password} {table|view} > output.csv