forked from gz-yami/mall4cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yxf
committed
Sep 23, 2022
1 parent
2ccc93f
commit 473ee2c
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## 创建更新商品后,列表数据错误 | ||
|
||
##### 1.成功发布商品后商品列表没有看到新发布的商品 | ||
|
||
##### 2.成功修改了商品的信息,但列表中显示的数据还是旧的 | ||
|
||
### 以上问题基本是由以下配置错误引起的 | ||
|
||
#### 1.canal没有读取到mysql的binlog | ||
|
||
mysql查询binglog位置 | ||
|
||
```mysql | ||
SHOW MASTER STATUS | ||
``` | ||
|
||
编辑`./canal/conf/example/instance.properties` | ||
|
||
修改以下四个参数 | ||
|
||
```properties | ||
# 填写数据库地址 | ||
canal.instance.master.address=192.168.1.46:3306 | ||
# 填写mysql执行命令`SHOW MASTER STATUS`后的File内容 | ||
canal.instance.master.journal.name=mysql-binlog.000001 | ||
|
||
``` | ||
|
||
|
||
重启`canal` | ||
|
||
```shell | ||
docker restart mall4cloud-canal | ||
``` |