master:
-----------------------------------------------
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
GRANT REPLICATION SLAVE ON *.* to backup@'%' identified by '123456';
slave:
-------------------------------------------------
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
change master to master_host='172.17.0.1',master_user='backup',master_password='123456',master_log_file='mysql-bin.000003',master_log_pos=439;
这样之后是否会违反约束呢?