Skip to content

Replication

Create Replication

CREATE REPLICA rep_name [replication_option] ...

replication_option:
    HOST = xx 
  | PORT = xx 
  | USER = xx 
  | PASSWORD = xx 
  | DO_DB = (db_name, db_name, ...)
  | DO_TABLE = (db_name.tbl_name, ...)

Drop Replication

DROP REPLICA rep_name

Show Replication

SHOW REPLICAS

Comments