标签:use 其他 需要 建议 lte 端口 gre div local
https://dzone.com/articles/consul-proxysql-and-mysql-ha?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed:%20dzone
https://www.aliyun.com/jiaocheng/132307.html?spm=5176.100033.2.6.51e94d54AD4NcE
Master:192.168.20.50:3306
Slave1:192.168.31.2:3306 (候选master)
Slave2:192.168.31.4:3306
2、安装mysql
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld.service
grep "password" /var/log/mysqld.log
mysql -uroot -p #登录
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘My2019..‘;
#因为安装了Yum Repository,以后每次yum操作都会自动更新,需要把这个卸载掉
yum -y remove mysql57-community-release-el7-10.noarch
3. Slave配置参数
log-bin = mysql-bin
log-bin-index = mysql-bin.index
read_only=1
relay_log_purge=0 #(一主一丛不需要此项,两从及以上建议开次参数,防止切换为成主库的从库自动删除中继日志后,无法给其他从库应用这部分日志)
标签:use 其他 需要 建议 lte 端口 gre div local
原文地址:https://www.cnblogs.com/kevincaptain/p/10333891.html