然后,在MYDB02
主机(192.168.250.194)
上操作,在MYDB02
的mysql
库中将MYDB01
设为自己的主服务器:
mysql> change master to master_host='192.168.250.193',master_user='repl_user',master_password='repl_passwd',master_log_file='mysql-bin.000001',master_log_pos=456;
Query OK, 0 rows affected, 2 warnings (0.26 sec)
mysql>