proxysql binlogreader全新安装

时间:2019-07-19 18:45:19

标签: proxysql

尝试让proxysql binlogreader在mysql 8.0的全新安装的ubuntu 18.04上工作

但是,我在proxysql_binlog_reader日志文件中收到错误:

Myslave:从服务器读取数据包时出错:GTID集编码格式错误。 mysql_error:1773

有人知道为什么会这样吗?还是在Ubuntu 18.04上成功设置了proxysql_binlog_reader?

show variables like '%gtid%';
+----------------------------------------------+-------------------------------------------------------------------------------------+
| Variable_name                                | Value                                                                               |
+----------------------------------------------+-------------------------------------------------------------------------------------+
| binlog_gtid_simple_recovery                  | ON                                                                                  |
| enforce_gtid_consistency                     | ON                                                                                  |
| group_replication_gtid_assignment_block_size | 1000000                                                                             |
| gtid_executed                                | 47c7125c-a9b5-11e9-8458-54bf6493df4f:1-13,
594a6bfe-aa51-11e9-9c74-54bf6493df4f:1-9 |
| gtid_executed_compression_period             | 1000                                                                                |
| gtid_mode                                    | ON                                                                                  |
| gtid_next                                    | AUTOMATIC                                                                           |
| gtid_owned                                   |                                                                                     |
| gtid_purged                                  |                                                                                     |
| session_track_gtids                          | OWN_GTID                                                                            |
+----------------------------------------------+-------------------------------------------------------------------------------------+

10.0.1.91:3306 ssl  JS > cluster.status();
{
    "clusterName": "myCluster", 
    "defaultReplicaSet": {
        "name": "default", 
        "primary": "10.0.1.91:3306", 
        "ssl": "REQUIRED", 
        "status": "OK_NO_TOLERANCE", 
        "statusText": "Cluster is NOT tolerant to any failures.", 
        "topology": {
            "10.0.1.91:3306": {
                "address": "10.0.1.91:3306", 
                "mode": "R/W", 
                "readReplicas": {}, 
                "role": "HA", 
                "status": "ONLINE", 
                "version": "8.0.16"
            }, 
            "10.0.1.93:3306": {
                "address": "10.0.1.93:3306", 
                "mode": "R/O", 
                "readReplicas": {}, 
                "role": "HA", 
                "status": "ONLINE", 
                "version": "8.0.16"
            }
        }, 
        "topologyMode": "Single-Primary"
    }, 
    "groupInformationSourceMember": "10.0.1.91:3306"
}




Start binlogreader from docker:

./proxysql_binlog_reader -h10.0.1.93 -uroot -proot -P3306 -l888 -L /opt/proxysql_mysqlbinlog/log.pos

0 个答案:

没有答案