查看binlog_format
show variables like 'binlog_format';
wget /releases/download/v1.21.1/maxwell-1.21.1.tar.gz
tar -zxvf maxwell-1.21.1.tar.gz
cd maxwell-1.21.1
MYSQL添加权限
GRANT ALL on maxwell.* to 'maxwell'@'%' identified by '123456';
GRANT SELECT, REPLICATION CLIENT, REPLICATION SLAVE on *.* to 'maxwell'@'%' ;
flush privileges;
stdout
bin/maxwell --user='maxwell' --password='123456' --host='192.168.10.5' --producer=stdout
redis
bin/maxwell --user='maxwell' --password='123456' --host='192.168.10.5' --producer=redis --redis_host='192.168.10.5' --redis_type='lpush' --redis_list_key='maxwell'
可以从config查看配置文件
阅读(8810) | 评论(0) | 转发(0) |