cloudsql-import

command module
v0.0.0-...-8573233 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

Cloud SQL import tool

WARNING: this project has been deprecated and is no longer supported or maintained.

This project will be archived on April 1, 2020.

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

Documentation

Overview

Copyright 2014 Google Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package main implements cloudsql-import, 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL