Cloud SQL import tool
Branch: master
Clone or download
razvanm Merge pull request #8 from daveschaefer/arg-patch
Add support for prompting for password
Latest commit e72f99b Jun 8, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial import Jul 14, 2014
README.md Merge the get/build Apr 9, 2015
main.go main - add quotes around regex symbols Jun 8, 2016

README.md

Cloud SQL import tool

cloudsql-import is a program resilient to restarts that replays a mysql dump to a MySQL server. The resilience is gained by saving the current state after each query. The final goal is for the program to also speed up the replay by issuing some queries in parallel.

How to build the tool

You can install the package in your $GOPATH with the go tool using the following command:

go get github.com/GoogleCloudPlatform/cloudsql-import

Note that this requires git on your machine and in your system's PATH.

The tool binary should be at $GOPATH/bin/cloudsql-import.

How to run the tool

cloudsql-import --dump=dump.sql --dsn='USER:ROOT@tcp(X.X.X.X:3306)/YYYY'

Where YYYY is a (optional) database name.

Licensing