Updated AdminGuide (markdown)

Jack
2018-10-10 18:45:08 +08:00
parent bd5795b56e
commit dbb6c6d418

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