LoginSignup
9
9

More than 5 years have passed since last update.

MySQL5.6で遅延レプリケーション機能を使う

Last updated at Posted at 2013-02-08

まず、レプリケーションを停止。

STOP SLAVE;



停止を確認したら下記コマンドを実行

CHANGE MASTER TO MASTER_DELAY=86400;

※上記の例だと24時間遅延



レプリケーションを再開

START SLAVE;



レプリケーションの遅延を確認

SHOW SLAVE STATUS \G


下記の様になっていれば成功

SQL_Delay: 86400
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9