简体   繁体   English

Maxscale“能力不匹配”

[英]Maxscale "Capability mismatch"

I did a fresh install of Maxscale, and I was trying to set up a Read-Write-Split service on a master-slave mariadb cluster.我全新安装了 Maxscale,并尝试在主从 mariadb 集群上设置读写分离服务。

When I was trying to connect with DataGrip or DBeaver, I got the following error message: [HY000][1927] Capability mismatch (bdd-master)当我尝试连接 DataGrip 或 DBeaver 时,收到以下错误消息: [HY000][1927] Capability mismatch (bdd-master)

But when I use the mysql command line client, it works well.但是当我使用 mysql 命令行客户端时,它运行良好。

Do you have any idea of what could be wrong?你知道什么可能是错的吗?

MaxScale sends a Capability mismatch error when it detects that the client application requests a protocol capability that one of the backend databases cannot support.当 MaxScale 检测到客户端应用程序请求后端数据库之一不支持的协议功能时,它会发送Capability mismatch错误。 In general, this should not happen as MaxScale tries to mimic the backend database and calculates the capabilities so that these sort of mismatches do not happen.一般来说,这不应该发生,因为 MaxScale 试图模仿后端数据库并计算能力,这样就不会发生这种不匹配。

There are some known bugs that can cause this, both in MaxScale as well as old versions of MariaDB and MySQL. Upgrading to the latest possible version of MaxScale should help solve any problems you might see.在 MaxScale 以及 MariaDB 和 MySQL 的旧版本中,有一些已知的错误可能会导致此问题。升级到最新的 MaxScale 版本应该有助于解决您可能遇到的任何问题。

Additionally, you should disable the query cache in the database if you are using MySQL as there is a bug in MySQL ( and old MariaDB versions as well ) that causes these sort of problems to appear.此外,如果您使用的是 MySQL,则应禁用数据库中的查询缓存,因为MySQL以及旧的 MariaDB 版本)中存在导致此类问题出现的错误。

It seems that is related to the router used (readwritesplit).这似乎与使用的路由器有关(readwritesplit)。

Datagrip send this command when it initiate the connection: set autocommit=1, session_track_schema=1, sql_mode = concat(@@sql_mode,',STRICT_TRANS_TABLES') Datagrip 在启动连接时发送此命令: set autocommit=1, session_track_schema=1, sql_mode = concat(@@sql_mode,',STRICT_TRANS_TABLES')

It seems that some of theses parameters are not supported by readwritesplit. readwritesplit 似乎不支持其中一些参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM