From 1565e721ad8d11db4fe35d896fcf10f239bf11f5 Mon Sep 17 00:00:00 2001 From: agapple Date: Tue, 5 Feb 2013 20:28:17 -0800 Subject: [PATCH] Updated QuickStart (markdown) --- QuickStart.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/QuickStart.md b/QuickStart.md index eb1dd66..5657825 100644 --- a/QuickStart.md +++ b/QuickStart.md @@ -1,3 +1,17 @@ +

几点说明:(mysql初始化)

+

a. canal的原理是基于mysql binlog技术,所以这里一定需要开启mysql的binlog写入功能,并且配置binlog模式为row.

+
[mysqld]
+log-bin=mysql-bin #添加这一行就ok
+binlog-format=ROW #选择row模式
+server_id=1 #配置mysql replaction需要定义,不能和canal的slaveId重复
+b. canal的原理是模拟自己为mysql slave,所以这里一定需要做为mysql slave的相关权限. +
+
CREATE USER canal IDENTIFIED BY 'canal';  
+GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%';
+-- GRANT ALL PRIVILEGES ON *.* TO 'canal'@'%' ;
+FLUSH PRIVILEGES;
+

针对已有的账户可通过grant +

启动步骤:

1. 下载canal

下载部署包

wget http://canal4mysql.googlecode.com/files/canal.deployer-1.0.0.tar.gz