https://github.com/suquant/gomysqldumper
Golang mysql dumper
https://github.com/suquant/gomysqldumper
Last synced: 9 months ago
JSON representation
Golang mysql dumper
- Host: GitHub
- URL: https://github.com/suquant/gomysqldumper
- Owner: suquant
- Created: 2015-04-20T00:27:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-20T08:46:56.000Z (about 11 years ago)
- Last Synced: 2023-03-22T19:22:15.717Z (over 3 years ago)
- Language: Go
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Golang mysql dumper
=====
Dump table data into csv files chunked by slice size with gzip compression
At complete printed into stdout file_path[(any errors)]: count
Requirements
=====
* github.com/go-sql-driver/mysql
Install requirements
```
# go get github.com/go-sql-driver/mysql
```
How to use?
=====
1. Build it
```
# go build main.go
```
2. Run it
```
# ./main -db_dsl="dbuser:dbpass@/test_db" -table="users" -to_path="/dump_path/" -slice_size=100000 -concurrency=5 -gzip_level=7
```
Or get help information
```
# ./main -h
```