我正在mysql 5.5(master)和mariaDB 10.2(slave)之间实现主从复制,我收到错误,比如在slave中
Relay log write failure: could not queue event from master
这是我的配置
我正在运行mysql 5.5(master)作为独立服务器而mariadb(slave)10.2作为docker运行。
主服务器中的-
in my.cnf
[mysqld]
log-bin=mysql-bin
server-id=1
创建复制用户
CREATE USER 'repl'@'%' IDENTIFIED BY 'DuoS123';
GRANT REPLICATION SLAVE ON *.* TO 'repl'@'%';
获得主二进制位置
FLUSH TABLES WITH READ LOCK;
SHOW MASTER STATUS;
输出: -
filename : mysql-bin.000004 pos: 904
SLAVE SERVER:
in my.cnf
[mysqld]
server-id=2
CHANGE MASTER TO MASTER_HOST='172.31.85.75', MASTER_USER='repl', MASTER_PASSWORD='DuoS123', MASTER_LOG_FILE='mysql-bin.000004',MASTER_LOG_POS=904 ;
答案 0 :(得分:0)
slave_sql_verify_checksum=0