你自己再检查一下这里吧:
“同时增加了用户backup,密码1234”

“master-user=backup#同步数据库的用户
master-password=backup#同步数据库的密码”<--------这里的密码应该是"123"吧

解决方案 »

  1.   

    笔误,确实是:“master-user=backup#同步数据库的用户
    master-password=1234#同步数据库的密码”账号是正确的,但是日志就是显示,While trying to obtain the list of slaves from the master '192.168.1.4:3306', user 'bakcup' got the following error: 'Access denied. You need the REPLICATION SLAVE privilege for this operation'
      

  2.   

    我怀疑是不是因为我使用sqlyog开的账号的原因,造成账号没有赋予相应权限造成的我用SQLYOG新建的账号,HOST是写的%勾选了所有权限我用mysql命令试过这个账号,是可以登录到MASTER服务器上的,但是就是这里不能用那位大侠发一段直接在MYSQL里建立账号的SQL语句我试试啊
      

  3.   

    你给你的backup帐户添加一个replication slave privilege就可以了:GRANT REPLICATION SLAVE ON *.* TO 'backup'@'%';Set up an account on the master server that the slave server can use to connect. This account must be given the REPLICATION SLAVE privilege. If the account is used only for replication (which is recommended), you don't need to grant any additional privileges. Suppose that your domain is mydomain.com and that you want to create an account with a username of repl such that slave servers can use the account to access the master server from any host in your domain using a password of slavepass. To create the account, use this GRANT statement: mysql> GRANT REPLICATION SLAVE ON *.*
        -> TO 'repl'@'%.mydomain.com' IDENTIFIED BY 'slavepass';If you plan to use the LOAD TABLE FROM MASTER or LOAD DATA FROM MASTER statements from the slave host, you must grant this account additional privileges: Grant the account the SUPER and RELOAD global privileges. Grant the SELECT privilege for all tables that you want to load. Any master tables from which the account cannot SELECT will be ignored by LOAD DATA FROM MASTER.