GRANT REPLICATION SLAVE ON *.* to 'slave1'@'192.168.0.%' identified by 'slave1'; //新建用户 flush privileges; //给用户权限