Setting Up Replication
Complete guide to MariaDB replication setup. Complete walkthrough for primary-replica topology with binary logging and GTID configuration.
Setting up a Replication Replica with MariaDB-Backup
Versions
1
[mariadb]
log-bin
server_id=1
log-basename=master1
binlog-format=mixedCREATE USER 'replication_user'@'%' IDENTIFIED BY 'bigs3cret';
GRANT REPLICATION SLAVE ON *.* TO 'replication_user'@'%';[mysqld]
log-bin
server_id=12
3
4
SHOW MASTER STATUS;
+--------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+--------------------+----------+--------------+------------------+
| master1-bin.000096 | 568 | | |
+--------------------+----------+--------------+------------------+UNLOCK TABLES;5
CHANGE MASTER TO
MASTER_HOST='master.domain.com',
MASTER_USER='replication_user',
MASTER_PASSWORD='bigs3cret',
MASTER_PORT=3306,
MASTER_LOG_FILE='master1-bin.000096',
MASTER_LOG_POS=568,
MASTER_CONNECT_RETRY=10;CHANGE MASTER TO MASTER_USE_GTID = slave_posSTART REPLICA;SHOW REPLICA STATUS \GSlave_IO_Running: Yes
Slave_SQL_Running: YesSee Also
Last updated
Was this helpful?

