Difference between revisions of "MariaDB binary log"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
  --[[log-bin]]=[[/your/path/]]mariadb-bin
 
  --[[log-bin]]=[[/your/path/]]mariadb-bin
 
  [[--log_bin_compress]]
 
  [[--log_bin_compress]]
 
  
 
== Steps ==
 
== Steps ==
Line 16: Line 15:
 
* Review files are created acording to your configuration:
 
* 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  330 Feb 19 14:03 mariadb-bin.000001
  -rw-rw---- 1 mysql mysql    35 Feb 19 14:03 mariadb-bin[[.index]]
+
  -rw-rw---- 1 mysql mysql    35 Feb 19 14:03 [[mariadb-bin.index]]
  
 
== Config ==
 
== Config ==

Latest revision as of 15:28, 8 April 2023

--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

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

Related[edit]

Activities[edit]

See also[edit]

Advertising: