Setting the Master Configuration on the Slave

17.1.1.10 Setting the Master Configuration on the Slave 在slave上设置Master的配置:

要设置slave和master 通讯,你必须告诉slave 必须的连接信息。要做到这一点,

执行下面的语句在slave上,替换选项值用实际值替换:

mysql> CHANGE MASTER TO
-> MASTER_HOST=’master_host_name’,
-> MASTER_USER=’replication_user_name’,
-> MASTER_PASSWORD=’replication_password’,
-> MASTER_LOG_FILE=’recorded_log_file_name’,
-> MASTER_LOG_POS=recorded_log_position;

注意:

复制不能使用Unix socket 文件,你必须可以连接到master 使用TCP/IP

原文地址:https://www.cnblogs.com/hzcya1995/p/13351328.html