Skip to main content

Script to export query results into local CSV files

Project description

Export MySQL query results to local CSV file.


$ mycsv [-u username] [-p password] [-h hostname] [-p port] [-s query.sql] [-O output.csv]

If you omit password option you will got a prompt asking for the password (password will not be echoed):

$ mycsv -O report.csv < report.sql
Password []:

You can send SQL script using stdin and dump CSV results to stdout:

$ mycsv -p Sekr3T < report.sql > report.csv

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mycsv, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size mycsv-0.1.3.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page