mysql 给MySQL添加从库 操作主库开启 binlog123[mysqld]log_bin=mysql-binserver-id=1 然后重启数据库: systemctl restart mariadb 创建用于同步的用户账号 登录主库: 1mysql -h...