mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Updated AdminGuide (markdown)
@@ -12,16 +12,28 @@ log-bin=mysql-bin #添加这一行就ok
|
|||||||
binlog-format=ROW #选择row模式
|
binlog-format=ROW #选择row模式
|
||||||
server_id=1 #配置mysql replaction需要定义,不能和canal的slaveId重复 </pre>
|
server_id=1 #配置mysql replaction需要定义,不能和canal的slaveId重复 </pre>
|
||||||
|
|
||||||
|
数据库重启后, 简单测试 `my.cnf` 配置是否生效:
|
||||||
|
|
||||||
```
|
```
|
||||||
Ubuntu16.04 && MySQL5.6
|
mysql> show variables like 'binlog_format';
|
||||||
[mysqld]
|
+---------------+-------+
|
||||||
log_bin=mysql-bin
|
| Variable_name | Value |
|
||||||
binlog_format=ROW
|
+---------------+-------+
|
||||||
server-id=1
|
| binlog_format | ROW |
|
||||||
|
+---------------+-------+
|
||||||
```
|
```
|
||||||
如果 my.cnf 设置不起作用,请参考:
|
```
|
||||||
https://stackoverflow.com/questions/38288646/changes-to-my-cnf-dont-take-effect-ubuntu-16-04-mysql-5-6
|
mysql> show variables like 'log_bin';
|
||||||
https://stackoverflow.com/questions/52736162/set-binlog-for-mysql-5-6-ubuntu16-4
|
+---------------+-------+
|
||||||
|
| Variable_name | Value |
|
||||||
|
+---------------+-------+
|
||||||
|
| log_bin | ON |
|
||||||
|
+---------------+-------+
|
||||||
|
```
|
||||||
|
|
||||||
|
如果 my.cnf 设置不起作用,请参考:
|
||||||
|
https://stackoverflow.com/questions/38288646/changes-to-my-cnf-dont-take-effect-ubuntu-16-04-mysql-5-6
|
||||||
|
https://stackoverflow.com/questions/52736162/set-binlog-for-mysql-5-6-ubuntu16-4
|
||||||
|
|
||||||
<div class="iteye-blog-content-contain" style="font-size: 14px;"> c. canal的原理是模拟自己为mysql slave,所以这里一定需要做为mysql slave的相关权限 <br />
|
<div class="iteye-blog-content-contain" style="font-size: 14px;"> c. canal的原理是模拟自己为mysql slave,所以这里一定需要做为mysql slave的相关权限 <br />
|
||||||
<pre name="code" class="java">CREATE USER canal IDENTIFIED BY 'canal';
|
<pre name="code" class="java">CREATE USER canal IDENTIFIED BY 'canal';
|
||||||
|
|||||||
Reference in New Issue
Block a user