GRANT REPLICATION SLAVE ON *.* TO 'root'@'%' IDENTIFIED BY 'zhoubt';grant all privileges on *.* to 'root'@'10.12.117.76' identified by 'zhoubt' GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'zhoubt' WITH GRANT OPTION; flush privileges; sh
mysql主主同步设置 主主同步设置是同等的地位,所以以下操作在两台机器上都需要进行而且操作是相同的. 服务器 服务器代号 IP hostname A 192.168.70.128 Debian1 B 192.168.70.130 Debian2 创建同步账号 分别在两台机器的mysql里面添加用户.如果需要制定特定的ip,只需将"%"替换成对应ip即可. mysql> grant replication slave on *.* to 'mysql'@'%' identifie