Ver Fonte

!105 更新文档
Merge pull request !105 from AE86/V_1.0.0_RC

AE86 há 2 anos atrás
pai
commit
97b65f7f76
1 ficheiros alterados com 7 adições e 1 exclusões
  1. 7 1
      README.md

+ 7 - 1
README.md

@@ -41,10 +41,16 @@ log-bin=mysql_bin
 binlog-format=ROW
 max_binlog_cache_size = 256M
 max_binlog_size = 512M
-expire_logs_days = 7
 #监听同步的库, 多个库使用英文逗号“,”拼接
 replicate-do-db=test
 ```
+> 准备账号用于数据同步(这里我为test数据库创建了ae86账号,并授权)
+``` sql
+CREATE USER 'ae86'@'%' IDENTIFIED WITH mysql_native_password BY '123';
+GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'ae86'@'%';
+GRANT SELECT ON test.* TO 'ae86'@'%';
+flush privileges;
+```
 
 ##### Oracle
 * CDN注册订阅。监听增删改事件,得到rowid,根据rowid执行SQL查询,得到变化数据。