一.部署前需要准备的东西
jdk:1.8.0_181
confluent:5.4.1
debezium:1.1.0.Final
修改数据库配置文件my.cnf 或 my.ini
server-id=11
log-bin=mysql-bin #添加这一行就ok
binlog-format=ROW #选择row模式
binlog_row_image=FULL
expire_logs_days=10
gtid_mode=ON
enforce_gtid_consistency=ON
wait_timeout=31536000
interactive_timeout=31536000
binlog_rows_query_log_events=ON
default-time_zone='+8:00'
character_set_server=utf8 #待同步的两个数据库要保持编码一致,否则会出现中文乱码
二.开始部署
1.解压 conflunet,将confluent添加到环境变量
vim /etc/profile
export CONFLUENT_HOME=/confluent-5.4.1
export PATH=$PATH:$CONFLUEN