Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MariaDB+MaxScale复制错误:从属I/O线程停止,因为在尝试选择@master\u binlog\u checksum时遇到致命错误_Mariadb_Maxscale - Fatal编程技术网

MariaDB+MaxScale复制错误:从属I/O线程停止,因为在尝试选择@master\u binlog\u checksum时遇到致命错误

MariaDB+MaxScale复制错误:从属I/O线程停止,因为在尝试选择@master\u binlog\u checksum时遇到致命错误,mariadb,maxscale,Mariadb,Maxscale,我正在尝试使用MaxScale CDC和MariaDB veriosn 10.0.32设置到卡夫卡的实时数据流。配置复制后,我将获得以下状态: 从属I/O线程停止,因为在尝试选择@master\u binlog\u校验和时遇到致命错误 以下是我的所有配置: MariaDB-配置 最大刻度配置 开始复制 复制状态 binlogrouter执行以下查询,以设置@master_binlog_校验和的值。实际复制从机执行相同的查询 SET @master_binlog_checksum = @@glob

我正在尝试使用MaxScale CDC和MariaDB veriosn 10.0.32设置到卡夫卡的实时数据流。配置复制后,我将获得以下状态:

从属I/O线程停止,因为在尝试选择@master\u binlog\u校验和时遇到致命错误

以下是我的所有配置:

MariaDB-配置

最大刻度配置

开始复制

复制状态


binlogrouter执行以下查询,以设置@master_binlog_校验和的值。实际复制从机执行相同的查询

SET @master_binlog_checksum = @@global.binlog_checksum
检查它的输出可能会解释复制无法启动的原因。设置查询很可能失败,这就是后一个SELECT@master\u binlog\u校验和查询返回意外结果的原因


在这种情况下,建议在上打开错误报告。这样就排除了出现错误的可能性,如果这是一个配置问题,可以更新文档以更清楚地解释如何配置MaxScale。

如果有人能告诉我这里缺少什么,那就太好了!您好,markusjm,感谢您的回复,我已经执行了SET@master_binlog_checksum=@@global.binlog_checksum并从mysql和MaxScale mysql中选择@master_binlog_checksum-h 192.168.56.102-P6004-u myuser-p mypwd,它显示了相同的输出。此外,我从MaxScale status[MySQLAuth][Replication1]获得了以下日志,没有加载任何用户,但启用了“注入服务用户”。启用用于身份验证的服务凭据,直到成功加载数据库用户。有什么线索吗?另外,下面是“授权”>“授权显示数据库、复制从机、复制客户端”。通过mysql.tables上的密码授予选择标识为“myuser”@“192.168.56.102”\u priv通过mysql.db上的“myuser”@“192.168.56.102”将选择授予“myuser”@“192.168.56.102”将mysql.user上的SELECT授予'myuser'@'192.168.56.102'
[server1]
type=server
address=192.168.56.102
port=3306
protocol=MariaDBBackend

[Replication]
type=service
router=binlogrouter
version_string=10.0.27-log
user=myuser
passwd=mypwd
server_id=3
#binlogdir=/var/lib/maxscale
#mariadb10-compatibility=1
router_options=binlogdir=/var/lib/maxscale,mariadb10-compatibility=1
#slave_sql_verify_checksum=1

[Replication Listener]
type=listener
service=Replication
protocol=MySQLClient
port=5308
CHANGE MASTER TO MASTER_HOST='192.168.56.102', MASTER_PORT=5308, MASTER_USER='myuser', MASTER_PASSWORD='mypwd', MASTER_LOG_POS=328, MASTER_LOG_FILE='mariadb-bin.000018';
START SLAVE;
                  Master_Host: 192.168.56.102
                  Master_User: myuser
                  Master_Port: 5308
                Connect_Retry: 60
              Master_Log_File: mariadb-bin.000018
          Read_Master_Log_Pos: 328
               Relay_Log_File: mysqld-relay-bin.000002
                Relay_Log_Pos: 4
        Relay_Master_Log_File: mariadb-bin.000018
             **Slave_IO_Running: No**
            Slave_SQL_Running: Yes
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table:
                   Last_Errno: 0
                   Last_Error:
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 328
              Relay_Log_Space: 248
              Until_Condition: None
               Until_Log_File:
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File:
           Master_SSL_CA_Path:
              Master_SSL_Cert:
            Master_SSL_Cipher:
               Master_SSL_Key:
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 1593
                Last_IO_Error: **The slave I/O thread stops because a fatal error is encountered when it tried to SELECT @master_binlog_checksum. Error:**
               Last_SQL_Errno: 0
               Last_SQL_Error:
  Replicate_Ignore_Server_Ids:
             Master_Server_Id: 0
               Master_SSL_Crl:
           Master_SSL_Crlpath:
                   Using_Gtid: No
                  Gtid_IO_Pos:
SET @master_binlog_checksum = @@global.binlog_checksum