canal源码及安装下载 https://github.com/alibaba/canal/releases canal(基于mysql数据库binlog的增量订阅&消费) - 简书 https://www.jianshu.com/p/6299048fad66 使用 Binlog 和 Canal 从 ...
分类:
数据库 时间:
2021-04-23 11:55:58
阅读次数:
0
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:
系统相关 时间:
2021-04-23 11:53:02
阅读次数:
0
利用docker搭建主从复制 环境 首先拉取docker镜像,我们这里使用5.7版本的mysql: docker pull mysql:5.7 然后使用此镜像启动容器,这里需要分别启动主从两个容器 Master(主): docker run -p 3340:3306 --name master -e ...
分类:
其他好文 时间:
2021-04-23 11:52:48
阅读次数:
0
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:
系统相关 时间:
2021-04-22 16:20:40
阅读次数:
0
Shell工具 cut:可以切割提取指定列\字符\字节的数据 cut可以将文本按列进行划分的文本处理,cut命令逐行度入文本,然后按列划分字段并进行提取,输出等操作 选项参数: -f 提取范围 列号,获取第几列 -d 自定义分隔符 自定义分隔符,默认为制表符 -c 提取范围 以字符为单位进行分割 - ...
分类:
系统相关 时间:
2021-04-22 16:20:19
阅读次数:
0
需要使用幂等的场景: 前端重复提交 接口超时重试 消息队列重复消费 解决方案: token机制:①客户端请求获取token,服务端生成一个唯一ID作为token存在redis中;②客户端第二次请求时携带token,服务端校验token成功则执行业务操作并删除token,服务端校验token失败则表示 ...
分类:
其他好文 时间:
2021-04-22 16:19:38
阅读次数:
0
关系型数据库系统(RDBMS):是指使用了关系模型的数据库系统(MySQL、Oracle、DB2、SQL Server) NoSQL数据库:指的是数据分类存放,但是数据之间没有 关联关系的数据库系统(Redis、MongoDB、Neo4J、MemCache) MySQL数据库(使用Navicat工具 ...
分类:
数据库 时间:
2021-04-22 16:13:48
阅读次数:
0
一、安装版本本文以如下版本为例进行介绍。服务器:CentOS:6.8MySQL:8.0.18gcc:9.2.0cmake:3.15.2 服务器配置如下:CentOS 6.8,内存6G,磁盘60G。内存4G,磁盘60G的情况下,编译不成功,内存不足;在内存6G,磁盘20G的情况下,编译也不成功,磁盘空 ...
分类:
数据库 时间:
2021-04-22 16:02:18
阅读次数:
0
MySQL中"full outer join"的实现 表ta 表tb 使用:【left join】 union 【right join】 select t1.dim_a, t1.qty qty_a, t2.dim_a dim_b, t2.qty qty_b from ta t1 left join ...
分类:
数据库 时间:
2021-04-22 15:56:52
阅读次数:
0
一:添加依赖jar <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <dependency> <groupId>mysql</gr ...
分类:
数据库 时间:
2021-04-22 15:55:12
阅读次数:
0