简体   繁体   English

percona复制改变大师

[英]percona replication change master

I'm trying to set up replication between two MySQL servers. 我正在尝试在两个MySQL服务器之间设置复制。 From the slave I log in as follows: 从奴隶我登录如下:

 mysql --host=10.32.8.187 --user=repl --password=********

My CHANGE MASTER statement: 我的CHANGE MASTER声明:

CHANGE MASTER TO 
MASTER_HOST='10.32.8.187', 
MASTER_USER='repl', 
MASTER_PASSWORD='********', 
MASTER_LOG_FILE='mysqld-bin.000006', 
MASTER_LOG_POS=632;

But Im getting the following error: 但我得到以下错误:

ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privilege(s) for this operation

When I run show grants I get the following 当我运行show grants时,我得到以下内容

Grants for repl@10.32.8.% 
GRANT RELOAD, PROCESS, SUPER, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'repl'@'10.32.8.%' IDENTIFIED BY PASSWORD '*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19'

So surely I already have the SUPER privilege? 所以我肯定有SUPER特权?

(I'm running Percona-Server-55.) (我正在运行Percona-Server-55。)

尽管重新启动服务器仍然有效,但您可能只需要运行FLUSH PRIVILEGES来重新加载授权。

So I flushed iptables and restarted the servers and hey presto. 所以我刷新iptables并重新启动服务器,嘿presto。 Sorry for time wasting 抱歉浪费时间

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM