标签:set mic code 从库 问题 com html lan end
MySQL主从复制的流程(如下图):
主库 配置 /etc/my.cnf 修改
[mysqld] server-id=1 log_bin=mysql-bin binlog-ignore-db=mysql binlog-ignore-db=test binlog-ignore-db=information_schema binlog-ignore-db=sys
从库slave配置
[mysqld] server-id=2 log-bin=/var/lib/mysql/mysql-bin relay-log=/var/lib/mysql/salve-relay-bin read-only=on
执行:start slave;
参考文档:[https://dev.mysql.com/doc/refman/5.7/en/replication-howto-additionalslaves.html]
出现CHANGE MASTER TO 问题解决:[https://dev.mysql.com/doc/refman/5.7/en/replication-setup-slaves.html]
MySQL中的各种log说明,参考:
[https://www.cnblogs.com/myseries/p/10728533.html]
[https://www.cnblogs.com/f-ck-need-u/p/9001061.html]
标签:set mic code 从库 问题 com html lan end
原文地址:https://www.cnblogs.com/coder-zyc/p/12934215.html