Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artyom/dbdump
Tool to dump MySQL tables to CSV files
https://github.com/artyom/dbdump
Last synced: about 14 hours ago
JSON representation
Tool to dump MySQL tables to CSV files
- Host: GitHub
- URL: https://github.com/artyom/dbdump
- Owner: artyom
- License: mit
- Created: 2017-11-14T14:22:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T14:30:41.000Z (almost 7 years ago)
- Last Synced: 2024-06-20T12:41:22.545Z (5 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE.txt
Awesome Lists containing this project
README
Command dbdump saves contents of tables in a given MySQL database to
per-table CSV files with optional gzip compression.dbdump saves either specified or all database tables which are readable by
the connected user; if only subset of table columns is readable, only these
readable columns are saved.By default program concurrenlty reads multiple tables over multiple
connections (see -n flag), if consistency between dumped tables is required,
use -tx flag to save them sequentially in a single transaction.MySQL credentials (user and password) are read from the "client" section of
the .my.cnf file which is expected to have the following format:[client]
user = username
password = passwordIf -tls flag is used, program connects to the server over TLS and expects
server certificate to be signed with certificate authority from the system
CA pool. On UNIX systems the environment variables SSL_CERT_FILE and
SSL_CERT_DIR can be used to override the system default locations for the
SSL certificate file and SSL certificate files directory, respectively.When running in concurrent mode, program only returns when all tables are
processed reporting the first encountered error. When running in a single
transaction mode (-tx flag), program terminates on the first error right
away.Only database, table and column names that can be used as unquoted MySQL
identifiers are supported — they are only allowed to contain characters from
[A-Za-z0-9_] range.Null values are saved in CSV as NULL.