Pingu
Computer MySQL PostgreSQL Books Publications
Spielereien Kanu Geopolitik Business TopoDB POI Klettersteigen History TransPool Thermal Baden Brokenstuben Goldwaschen
Blog Contact
Shinguz
Google
/ch/open

MariaDB and MySQL

/ home / computer / .

Replication commands

The following commands have been tested against MySQL 9.7 and MariaDB 12.3:

Source / Master commands

old commands new commands
SHOW MASTER STATUS; SHOW BINARY LOG STATUS; (does NOT work on MariaDB!)
SHOW BINARY LOGS; no change
PURGE BINARY LOGS BEFORE '2026-10-01 00:00:00'; no change
FLUSH BINARY LOGS; no change
SHOW SLAVE HOSTS; SHOW REPLICAS; (does NOT work on MariaDB!)
SET SESSION SQL_LOG_BIN = ON; no change

Slave / Replica commands

old commands new commands
SHOW SLAVE STATUS\G SHOW REPLICA STATUS\G
STOP SLAVE; STOP REPLICA;
CHANGE MASTER TO ...; CHANGE REPLICATION SOURCE TO source_host='...', source_user='...', source_password='...'
, source_log_file='...', source_log_pos=..., source_ssl=1; (does NOT work on MariaDB!)
SET GLOBAL sql_slave_skip_counter = 0; SET GLOBAL sql_slave_skip_counter = 0; (works still in MySQL!), SET GLOBAL sql_replica_skip_counter = 0; (does NOT work on MariaDB!)
START SLAVE; START REPLICA;
RESET SLAVE ALL; RESET REPLICA ALL;

Percona Server seems to be a bit more flexible here. It accepts old and new commands. It looks like the old commands produce the old results and the new commands produce the new results…

VLDB

MariaDB topics

MariaDB documentation

MariaDB (foundation or PLC) messed around with the documentation. Thus here the most important links…