Skip to content

Commit b0c0049

Browse files
author
Shlomi Noach
committed
more doc
1 parent de2fba1 commit b0c0049

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ Note: in order to migrate a table on the master you don't need to _connect_ to t
6969
Originally this was named `gh-osc`: GitHub Online Schema Change, in the likes of [Facebook online schema change](https://www.facebook.com/notes/mysql-at-facebook/online-schema-change-for-mysql/430801045932/) and [pt-online-schema-change](https://www.percona.com/doc/percona-toolkit/2.2/pt-online-schema-change.html).
7070

7171
But then a rare genetic mutation happened, and the `s` transformed into `t`. And that sent us down the path of trying to figure out a new acronym. Right now, `gh-ost` (pronounce: _Ghost_), stands for:
72-
- GitHub Online Schema Translator/Transformer/Transfigurator
72+
- GitHub Online Schema Transmogrifier/Translator/Transformer/Transfigurator
73+
74+
Pronounce: _ghost_
7375

7476
## Authors
7577

doc/cheatsheet.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
`gh-ost` operates by connecting to potentially multiple servers, as well as imposing itself as a replica in order to streamline binary log events directly from one of those servers. There are various operation modes, which depend on your setup, configuration, and where you want to run the migration.
77

8-
##### a. Connect to replica, migrate on master
8+
### a. Connect to replica, migrate on master
99

1010
This is the mode `gh-ost` expects by default. `gh-ost` will investigate the replica, crawl up to find the topology's master, and will hook onto it as well. Migration will:
1111

@@ -46,7 +46,7 @@ gh-ost \
4646
With `--execute`, migration actually copies data and flips tables. Without it this is a `noop` run.
4747

4848

49-
##### b. Connect to master
49+
### b. Connect to master
5050

5151
If you don't have replicas, or do not wish to use them, you are still able to operate directly on the master. `gh-ost` will do all operations directly on the master. You may still ask it to be considerate of replication lag.
5252

@@ -78,7 +78,7 @@ gh-ost \
7878
[--execute]
7979
```
8080

81-
##### c. Migrate/test on replica
81+
### c. Migrate/test on replica
8282

8383
This will perform a migration on the replica. `gh-ost` will briefly connect to the master but will thereafter perform all operations on the replica without modifying anything on the master.
8484
Throughout the operation, `gh-ost` will throttle such that the replica is up to date.
@@ -92,6 +92,7 @@ Test on replica cheatsheet:
9292
gh-ost \
9393
--user="gh-ost" \
9494
--password="123456" \
95+
--host=replica.with.rbr.com \
9596
--test-on-replica \
9697
--database="my_schema" \
9798
--table="my_table" \
@@ -108,3 +109,15 @@ gh-ost \
108109
--panic-flag-file=/tmp/gh-ost.panic.flag \
109110
--execute
110111
```
112+
113+
### cnf file
114+
115+
You may use a `cnf` file in the following format:
116+
117+
```
118+
[client]
119+
user=gh-ost
120+
password=123456
121+
```
122+
123+
You may then remove `--user=gh-ost --password=123456` and specify `--conf=/path/to/config/file.cnf`

0 commit comments

Comments
 (0)