This tutorial is for you that is trying to import your current
database into a Google Cloud SQL instance, replica
,
that will be setup for replication purposes.
According to the documentation, you will need to run:
mysqldump \ -h [MASTER_IP] -P [MASTER_PORT] -u [USERNAME] -p \ --databases [DBS] \ --hex-blob --skip-triggers --master-data=1 \ --order-by-primary --compact --no-autocommit \ --default-character-set=utf8 --ignore-table [VIEW] \ --single-transaction --set-gtid-purged=on | gzip | \ gsutil cp - gs://[BUCKET]/[PATH_TO_DUMP]
The mysqldump
parameters are:
-
-h
the hostname or IPV4 address of theprimary
should replace[MASTER_IP]
-
-P
the port or theprimary
server, usually …