You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GCP cloud-SQL DBs do not seem to allow using gh-ost due to the way that
we create tables (using `CREATE TABLE <ghost-table> LIKE <table>`). This
is a confirmed GCP bug:
https://issuetracker.google.com/issues/158129960
For the time being, this commit adds an option to enable GCP support,
using a different CREATE TABLE statement.
Copy file name to clipboardExpand all lines: doc/requirements-and-limitations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ The `SUPER` privilege is required for `STOP SLAVE`, `START SLAVE` operations. Th
39
39
- For example, you may not migrate `MyTable` if another table called `MYtable` exists in the same schema.
40
40
41
41
- Amazon RDS works, but has its own [limitations](rds.md).
42
-
- Google Cloud SQL works, `--gcp` flag required.
42
+
- Google Cloud SQL works, `--gcp`or `--gcpv2`flag required for running on a 1st/2nd generation Cloud SQL, respectively.
43
43
- Aliyun RDS works, `--aliyun-rds` flag required.
44
44
45
45
- Multisource is not supported when migrating via replica. It _should_ work (but never tested) when connecting directly to master (`--allow-on-master`)
Copy file name to clipboardExpand all lines: go/cmd/gh-ost/main.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,8 @@ func main() {
76
76
flag.BoolVar(&migrationContext.SkipForeignKeyChecks, "skip-foreign-key-checks", false, "set to 'true' when you know for certain there are no foreign keys on your table, and wish to skip the time it takes for gh-ost to verify that")
77
77
flag.BoolVar(&migrationContext.SkipStrictMode, "skip-strict-mode", false, "explicitly tell gh-ost binlog applier not to enforce strict sql mode")
78
78
flag.BoolVar(&migrationContext.AliyunRDS, "aliyun-rds", false, "set to 'true' when you execute on Aliyun RDS.")
79
-
flag.BoolVar(&migrationContext.GoogleCloudPlatform, "gcp", false, "set to 'true' when you execute on a 1st generation Google Cloud Platform (GCP).")
79
+
flag.BoolVar(&migrationContext.GoogleCloudPlatformV1, "gcp", false, "set to 'true' when you execute on a 1st generation Google Cloud Platform (GCP).")
80
+
flag.BoolVar(&migrationContext.GoogleCloudPlatformV2, "gcpv2", false, "set to 'true' when you execute on a 2nd generation Google Cloud Platform (GCP).")
80
81
81
82
executeFlag:=flag.Bool("execute", false, "actually execute the alter & migrate the table. Default is noop: do some tests and exit")
82
83
flag.BoolVar(&migrationContext.TestOnReplica, "test-on-replica", false, "Have the migration run on a replica, not on the master. At the end of migration replication is stopped, and tables are swapped and immediately swap-revert. Replication remains stopped and you can compare the two tables for building trust")
log.Errorf("Unable to create changelog table, see further error details. Perhaps a previous migration failed without dropping the table? OR is there a running migration? Bailing out")
0 commit comments