2020
11-29
11-29
MYSQL数据库GTID实现主从复制实现(超级方便)
一、添加Maria源vi/etc/yum.repos.d/MariaDB.repo粘贴阿里云的最新mariadb镜像:[mariadb]name=MariaDBbaseurl=https://mirrors.aliyun.com/mariadb/yum/10.5/centos7-amd64/gpgkey=https://mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDBgpgcheck=1安装新版本的MariaDByuminstallmariadbmariadb-server开启binlog日志vim/etc/my.cnf.d/server.cnf在mysqld下添加以下内容server_id=1log_bin=mysql-binsystemctl...
继续阅读 >