cat /etc/my.cnf 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [mysqld] [client] default-character-set=utf8 [mysqld] collation-server = utf8_unicode_ci init-connect=SET NAMES utf8 character-set-server = utf8 # port=13000 server-id=1 binlog_format=ROW log_bin=/tmp/
cat /etc/my.cnf
binlog_format的值有3个选项:MIXED、ROW、STATEMENT
具体选哪种看需求: 如果想要确保数据的一致性,设置 binlog_format 为 ROW。 配置参考:
|
2021-06-02
2021-06-05
2022-06-27
2024-02-19
2022-10-12