Skip to content

osantana/mycsv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mycsv

Export MySQL query results to local CSV file.

Usage:

$ 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

About

Export query results to local CSV file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages