通过docker-compose.yml文件安装
maxwell:
image: zendesk/maxwell
container_name: maxwell
environment:
- MYSQL_USERNAME=bessky_pss
- MYSQL_PASSWORD=20092009
- MYSQL_HOST=192.168.99.xxx
- MAXWELL_PRODUCER=stdout
- MAXWELL_OPTIONS=--replication_host=192.168.99.xxx --replication_user=canal --replication_password=canal --replication_jdbc_options=serverTimezone=Asia/Shanghai --filter=exclude:*.*,include:bessky_pss.t_canal --exclude_columns=desc
简单启动
docker run -it --rm zendesk/maxwell bin/maxwell --user=bessky_pss --password=20092009 --host=192.168.99.xxx --replication_host=192.168.99.xxx --replication_user=canal --replication_password=canal --filter='exclude:*.*,include:bessky_pss.t_canal' --exclude_columns=desc --producer=stdout
引导恢复
docker exec -it maxwell bin/maxwell-bootstrap --user=bessky_pss --password=20092009 --host=192.168.99.xxx --database bessky_pss --table t_canal --replication_host=192.168.99.xxx --replication_user=canal --replication_password=canal
初始化产品表
docker exec -it maxwell bin/maxwell-bootstrap --user=bessky_maxwell --password=xxx --host=192.168.99.xxx --schema_database=bessky_maxwell --database bessky_pss --table t_product --replication_host=192.168.99.xxx --replication_user=canal --replication_password=canal
分享到:
相关推荐
基于uniapp、flutter、vue构建...后端: SpringBoot + nginx + docker + SpringSecurity + Swagger2 + MyBatisPlus + Mysql + Redis + elasticsearch + RabbitMQ + MaxWell + Websocket 其他: 接入QQ,微博第三方登录
大数据学习文档、实战代码、源码解析、测试数据包含python、mysql、shell、hadoop、hive、zookeeper、hbase、flume、kafka、spark、...docker、kubernetes、strampark、maxwell等组件学习、实战、面试持续更新中......
Goby Sample Server APP-待办事项列表 要求 码头工人 Docker撰写 用法 克隆它! $ git clone git@github....进入项目目录并运行命令: $ docker-compose up ... 示例APP维护人员@ Maxwell-Alexius 徽标设计师@steward
**后端:** SpringBoot + nginx + docker + SpringSecurity + Swagger2 + MyBatisPlus + Mysql + Redis + elasticsearch + RabbitMQ + MaxWell + Websocket **其他:** 接入QQ,微博、微信第三方登录,接入腾讯云...
**后端:** SpringBoot + nginx + docker + SpringSecurity + Swagger2 + MyBatisPlus + Mysql + Redis + elasticsearch + RabbitMQ + MaxWell + Websocket **其他:** 接入QQ,微博第三方登录,接入腾讯云人机验证...