From a7d201f0542697417a2aacfbb5a59f85c6d1acb8 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sat, 8 Nov 2025 00:52:35 +0100 Subject: [PATCH] feat: improve readibility for mysql configs --- docs/linux/mysql-replication.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/linux/mysql-replication.md b/docs/linux/mysql-replication.md index 3339afc..2ae2943 100644 --- a/docs/linux/mysql-replication.md +++ b/docs/linux/mysql-replication.md @@ -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 @@ -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