scripts/

directory
v3.11.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 License: Apache-2.0

README

#How to patch

先將 mysql 導入 production environment 的資料庫。

mysql -h 10.20.30.40 -uroot -p < ./2016-XXXX.sql

編繹 db-patch 這隻程式

cd mysql/dbpatch/go
go build -o db-patch
cp db-patch ../..

開始 patch

cd mysql/dbpatch/change-log
../../db-patch -driverName="mysql" -dataSourceName="root:password@tcp(10.20.30.40:3306)/falcon_portal" '-changeLog=change-log-portal.yaml'

Directories

Path Synopsis
mysql
dbpatch/go/changelog
As the loading process for change log
As the loading process for change log
dbpatch/go/sql
Connect and execute patch
Connect and execute patch

Jump to

Keyboard shortcuts

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