I want to get headerless CSV data from the output of a query to MySQL on the command line. I\'m running this query on a different machine from the MySQL server, so all those
As a partial answer: mysql -N -B -e "select people, places from things"
mysql -N -B -e "select people, places from things"
-N tells it not to print column headers. -B is "batch mode", and uses tabs to separate fields.
-N
-B
If tab separated values won't suffice, see this Stackoverflow Q&A.