are there any solid tools (preferably command line tools for linux) for exporting mysql db into csv files? it needs to follow csv standards properly and handle all the newline character and other special characters properly. select * into table does not seem to be properly converting the data correctly.
3 Answers
Try SQL Workbench/J.
It is Java based (therefor platform independent) and works on the commandline, in batch mode and as a GUI tool.
You have full control over the export format (including handling of special characters) using the WbExport command.