feat: improve readibility for mysql configs
This commit is contained in:
parent
2cb7582858
commit
a7d201f054
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue