主从复制
参考:官网
#主数据库
reset master;
show master status;
#从数据库
stop slave; reset slave; change master to master_host='IP地址', master_user='账号', master_password='密码', master_log_file='mysql.000001', master_log_pos=156, get_master_public_key=1; start slave; show slave status;