From d1e99343c0fa69eea4f77040506edc33b6ee4ed6 Mon Sep 17 00:00:00 2001 From: agapple Date: Fri, 11 Jan 2019 10:25:29 +0800 Subject: [PATCH] Updated QuickStart (markdown) --- QuickStart.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QuickStart.md b/QuickStart.md index 5a47ba2..aad4bad 100644 --- a/QuickStart.md +++ b/QuickStart.md @@ -10,8 +10,8 @@ server_id=1 #配置mysql replaction需要定义,不能和canal的slaveId重复 b. canal的原理是模拟自己为mysql slave,所以这里一定需要做为mysql slave的相关权限.
CREATE USER canal IDENTIFIED BY 'canal';  
-GRANT SELECT, SHOW VIEW, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%';
--- GRANT ALL PRIVILEGES ON *.* TO 'canal'@'%' ; 需要具有SHOW VIEW 权限
+GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%';
+-- GRANT ALL PRIVILEGES ON *.* TO 'canal'@'%' ;
 FLUSH PRIVILEGES;

针对已有的账户可直接通过grant