os:centos:mysql:replication
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
os:centos:mysql:replication [2022/11/11 06:52] – [サーバID] hayashi | os:centos:mysql:replication [2022/11/11 07:00] – [バックアップ] hayashi | ||
---|---|---|---|
行 49: | 行 49: | ||
mysql> FLUSH TABLES WITH READ LOCK; | mysql> FLUSH TABLES WITH READ LOCK; | ||
- | LOGファイル名を確認 | + | LOGファイル名とポジションを確認 |
< | < | ||
mysql> SHOW MASTER STATUS; | mysql> SHOW MASTER STATUS; | ||
行 78: | 行 78: | ||
[mysqld] | [mysqld] | ||
+ | log-bin | ||
server-id=102 | server-id=102 | ||
- | | + | read_only |
- | | + | |
+ | ==== リストア ==== | ||
+ | |||
+ | # mysql -u root -p< | ||
==== Masterに接続するための設定 ==== | ==== Masterに接続するための設定 ==== | ||
< | < |
os/centos/mysql/replication.txt · 最終更新: 2022/11/11 09:10 by hayashi