Skip to content

Commit 9b0a505

Browse files
authored
Merge pull request #594 from gongyisheng/main
[readme] update MySQL server setting part
2 parents 4ea7412 + 41e7bb3 commit 9b0a505

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,15 @@ MySQL server settings
103103
In your MySQL server configuration file you need to enable replication:
104104

105105
[mysqld]
106-
server-id = 1
107-
log_bin = /var/log/mysql/mysql-bin.log
108-
expire_logs_days = 10
109-
max_binlog_size = 100M
110-
binlog-format = row #Very important if you want to receive write, update and delete row events
106+
server-id = 1
107+
log_bin = /var/log/mysql/mysql-bin.log
108+
binlog_expire_logs_seconds = 864000
109+
max_binlog_size = 100M
110+
binlog-format = ROW #Very important if you want to receive write, update and delete row events
111+
binlog_row_metadata = FULL
112+
binlog_row_image = FULL
113+
114+
reference: https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html
111115

112116
Examples
113117
=========

0 commit comments

Comments
 (0)