Skip to content

Commit

Permalink
添加常见问题处理文档
Browse files Browse the repository at this point in the history
  • Loading branch information
yxf committed Sep 23, 2022
1 parent 2ccc93f commit 473ee2c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions doc/基本开发文档/常见问题.md
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
```

0 comments on commit 473ee2c

Please sign in to comment.