1

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 3

1

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.

Sign up to request clarification or add additional context in comments.

Comments

1

You can use phpmyadmin. It has an Export feature that does that splendidly.

Comments

1

There are different tools for it:

  1. phpMyAdmin
  2. MySQL Workbench
  3. Navicat for MySQL

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.