Documentos de Académico
Documentos de Profesional
Documentos de Cultura
on 2022/07/06 23:11
Linkam tutorials - Replication for MariaDB
Table of Contents
1. Instalación y configuración Ubuntu Server ..................................................................................................................... 3
2. Instalación y configuración Maria DB .............................................................................................................................. 3
3. Configuración MASTER .................................................................................................................................................... 3
4. Configuración SLAVE ........................................................................................................................................................ 3
Contents
• 1. Instalación y configuración Ubuntu Server
• 2. Instalación y configuración Maria DB
• 3. Configuración MASTER
• 4. Configuración SLAVE
MariaDB installacion
3. Configuración MASTER
Editar el archivo "my.cnf" ubicado en "/etc/mysql/"
[mariadb]
log-bin
server_id=1
log-basename=master1
binlog-format=mixed
skip-networking=0
bind-address=0.0.0.0
4. Configuración SLAVE
Editar el archivo "my.cnf" ubicado en "/etc/mysql/"
[mariadb]
server_id=2
CHANGE MASTER TO
MASTER_HOST='<IP Master Server>',
MASTER_USER='replication_user',
MASTER_PASSWORD='bigS3cret',
MASTER_PORT=3306,
MASTER_LOG_FILE='master1-bin.000001',
MASTER_LOG_POS=360,
MASTER_USE_GTID = slave_pos,
MASTER_CONNECT_RETRY=10;
START SLAVE;
SHOW SLAVE STATUS;