feat: improve readibility for mysql configs

This commit is contained in:
Simon Cornet 2025-11-08 00:52:35 +01:00
commit a7d201f054

View file

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