一、创建用户
CREATE USER canal IDENTIFIED BY 'test';
GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'test'@'%';
FLUSH PRIVILEGES;
二、在navicat登录报错
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
处理:
错误产生的原因是root用户没有test登录的权限,修改配置
mysql——》my.ini中,[mysqld]选项中添加:skip-grant-tables
停止mysql
net stop mysql
启动
net start mysql
再进去登录直接ok