PAUSE REPLICATING

Pause replicating a database.

Syntax

PAUSE REPLICATING db_name

Remarks

  • db_name - name of a SingleStore database.

  • This command causes implicit commits. Refer to COMMIT for more information.

  • Run PAUSE REPLICATING to suspend the database replication process initiated by REPLICATE DATABASE.

  • Once replication is paused, the replica no longer requests new log records from the primary database. The connection between the replica and the master is closed. The secondary database continues to be available only for reads, and not for writes.

  • While replication is paused, the database is in the replication paused state (see Database States).

  • You can resume replication by running CONTINUE REPLICATING .

  • Refer to the Permission Matrix for the required permission.

Example

PAUSE REPLICATING ExampleDatabase;
Query OK, 1 row affected (0.03 sec)

Related Topics

Last modified: January 9, 2023

Was this article helpful?