Not sure if this is helpful, but this is what stack overflow says: https://stackoverflow.com/questions/467452/dump-a-mysql-database-to-a-plaintext-csv-backup-from-the-command-line#467465