mysql.rds_start_replication_until - Amazon Relational Database Service


Initiates replication from an RDS for MySQL DB instance and stops replication at the specified binary log file location.


CALL mysql.rds_start_replication_until ( replication_log_file , replication_stop_point );



The name of the binary log on the source database instance contains the replication information.


The location in the replication_log_file binary log at which replication will stop.

Usage notes

The master user must run the mysql.rds_start_replication_until procedure.

You can use this procedure with delayed replication for disaster recovery. If you have delayed replication configured, you can use this procedure to roll forward changes to a delayed read replica to the time just before a disaster. After this procedure stops replication, you can promote the read replica to be the new primary DB instance by using the instructions in Promoting a read replica to be a standalone DB instance.

You can configure delayed replication using the following stored procedures:

The file name specified for the replication_log_file parameter must match the source database instance binlog file name.

When the replication_stop_point parameter specifies a stop location that is in the past, replication is stopped immediately.

The mysql.rds_start_replication_until procedure is available in these versions of RDS for MySQL:

  • MySQL 8.0.26 and higher 8.0 versions

  • All 5.7 versions


The following example initiates replication and replicates changes until it reaches location 120 in the mysql-bin-changelog.000777 binary log file.

call mysql.rds_start_replication_until( 'mysql-bin-changelog.000777', 120);