一、創建用戶
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