Loading docs/linux/mysql-replication.md +7 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,10 @@ This is tested on MariaDB 11. ### Prepare mysql source ```shell vim /etc/mysql/conf.d/mysqld.cnf /etc/mysql/conf.d/mysqld.cnf ``` ```shell [mysqld] server-id = 1 Loading Loading @@ -48,8 +51,10 @@ mariadb-dump -h source.example.com -u root -p --single-transaction --databases d ### Prepare mysql replica ```shell vim /etc/mysql/conf.d/mysqld.cnf /etc/mysql/conf.d/mysqld.cnf ``` ```shell [mysqld] server-id = 2 read-only = 1 Loading Loading
docs/linux/mysql-replication.md +7 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,10 @@ This is tested on MariaDB 11. ### Prepare mysql source ```shell vim /etc/mysql/conf.d/mysqld.cnf /etc/mysql/conf.d/mysqld.cnf ``` ```shell [mysqld] server-id = 1 Loading Loading @@ -48,8 +51,10 @@ mariadb-dump -h source.example.com -u root -p --single-transaction --databases d ### Prepare mysql replica ```shell vim /etc/mysql/conf.d/mysqld.cnf /etc/mysql/conf.d/mysqld.cnf ``` ```shell [mysqld] server-id = 2 read-only = 1 Loading