: 'show master status' has an error! pls check. you need (at least one of) the S UPER,REPLICATION CL

在搭建canal环境时,启动canal报错“: 'show master status' has an error! pls check. you need (at least one of) the S UPER,REPLICATION CL”,这个涉及到两个操作:

1.创建canal用户,并开启对应权限

CREATE USER canal IDENTIFIED BY 'canal';    
GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%';  
FLUSH PRIVILEGES; 

2.配置mysql服务端配置,这个可以参考https://blog.csdn.net/john1337/article/details/85166575,笔者也是踩了这个坑,windows系统用户一定要特别注意,mysql启动时使用的配置文件并不是mysql安装目录下的my.ini配置文件

你可能感兴趣的:(canal,mysql)