Loading docs/linux/mysql-replication.md +12 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ This is tested on MariaDB 11. ``` ```shell [mysqld] server-id = 1 log-bin = /var/log/mysql/mysql-bin.log Loading @@ -26,6 +25,10 @@ Restart mysql: `systemctl restart mysql` ### Create replication user ```shell mysql -u root -p ``` ```shell DROP USER IF EXISTS 'replicator'@'replica.example.com'; CREATE USER 'replicator'@'replica.example.com' IDENTIFIED BY 'supersecure'; Loading Loading @@ -83,6 +86,10 @@ mysql -u root -p < /tmp/databeast.sql ### Activate replication ```shell mysql -u root -p ``` ```shell STOP REPLICA; RESET REPLICA; Loading @@ -96,6 +103,10 @@ START REPLICA; ## Monitor replication ```shell mysql -u root -p ``` ```shell SHOW REPLICA STATUS\G *************************** 1. row *************************** Loading Loading
docs/linux/mysql-replication.md +12 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ This is tested on MariaDB 11. ``` ```shell [mysqld] server-id = 1 log-bin = /var/log/mysql/mysql-bin.log Loading @@ -26,6 +25,10 @@ Restart mysql: `systemctl restart mysql` ### Create replication user ```shell mysql -u root -p ``` ```shell DROP USER IF EXISTS 'replicator'@'replica.example.com'; CREATE USER 'replicator'@'replica.example.com' IDENTIFIED BY 'supersecure'; Loading Loading @@ -83,6 +86,10 @@ mysql -u root -p < /tmp/databeast.sql ### Activate replication ```shell mysql -u root -p ``` ```shell STOP REPLICA; RESET REPLICA; Loading @@ -96,6 +103,10 @@ START REPLICA; ## Monitor replication ```shell mysql -u root -p ``` ```shell SHOW REPLICA STATUS\G *************************** 1. row *************************** Loading