Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/osantana/mycsv

Export query results to local CSV file
https://github.com/osantana/mycsv

Last synced: about 1 month ago
JSON representation

Export query results to local CSV file

Awesome Lists containing this project

README

        

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