Difference between revisions of "MariaDB binary log"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 27: Line 27:
 
  #binlog_ignore_db = exclude_database_name
 
  #binlog_ignore_db = exclude_database_name
  
  binlog_format=ROW
+
  [[binlog_format]]=ROW
  
 
== Format ==
 
== Format ==
Line 34: Line 34:
 
== [[Slave]] ==
 
== [[Slave]] ==
 
{{MariaDB slave}}
 
{{MariaDB slave}}
 +
 +
== Binary logs ==
 +
{{file mariadb}}
  
 
== Related ==
 
== Related ==
Line 51: Line 54:
 
* {{MariaDB binary log}}
 
* {{MariaDB binary log}}
 
* {{mariabackup}}
 
* {{mariabackup}}
* {{DBs backups}}
 
 
* {{MariaDB}}
 
* {{MariaDB}}
  
 
[[Category:MariaDB]]
 
[[Category:MariaDB]]

Latest revision as of 06:17, 13 January 2025

--log-bin=your-log-binname
--log-bin=mariadb-bin
--log-bin=/your/path/mariadb-bin
--log_bin_compress

Steps[edit]

  • Review files are created acording to your configuration:
-rw-rw---- 1 mysql mysql   330 Feb 19 14:03 mariadb-bin.000001
-rw-rw---- 1 mysql mysql    35 Feb 19 14:03 mariadb-bin.index

Config[edit]

cat /etc/mysql/mariadb.conf.d/50-server.cnf | grep log_bin
#log_bin                = /var/log/mysql/mysql-bin.log
cat /etc/mysql/mariadb.conf.d/50-server.cnf | grep binlog
max_binlog_size   = 100M
#binlog_do_db		= include_database_name
#binlog_ignore_db	= exclude_database_name
binlog_format=ROW

Format[edit]

Slave[edit]

STOP SLAVE;
SET GLOBAL slave_parallel_threads=0;
SET GLOBAL binlog_format='ROW';
SET GLOBAL slave_parallel_threads=4;
START SLAVE

Binary logs[edit]

file mariadb-bin.index
mariadb-bin.index: ASCII text

file mariadb-bin.000003
mariadb-bin.000003: MySQL replication log, server id 1 MySQL V5+, server version 10.4.21-MariaDB-1:10.4.21+maria~bionic-log

Related[edit]

Activities[edit]

See also[edit]

Advertising: