CREATE USER 'maxwell'@'%' IDENTIFIED BY '123456';
CREATE USER 'maxwell'@'localhost' IDENTIFIED BY '123456';
GRANT ALL ON maxwell.* TO 'maxwell'@'%';
GRANT ALL ON maxwell.* TO 'maxwell'@'localhost';
GRANT SELECT, REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO 'maxwell'@'%';
GRANT SELECT, REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO 'maxwell'@'localhost';
## redis# redis 连接地址
redis_host=192.168.12.197
# redis 端口
redis_port=6379
# 认证信息#redis_auth=redis_auth# 选择数据库
redis_database=0
# redis key 可以动态配置:%{database}数据库:%{table}表:%{type}(插入/更新/删除)
redis_key=maxwell:%{database}:%{table}# this can be static, e.g. 'maxwell', or dynamic, e.g. namespace_%{database}_%{table}# redis_pub_channel=namespace_%{database}_%{table}# this can be static, e.g. 'maxwell', or dynamic, e.g. namespace_%{database}_%{table}#redis_list_key=maxwell#redis_list_key=maxwell:%{database}:%{table}# this can be static, e.g. 'maxwell', or dynamic, e.g. namespace_%{database}_%{table}# Valid values for redis_type = pubsub|lpush. Defaults to pubsub# 模式可以发布订阅 ,或者 list (pubsub|lpush)
redis_type=lpush