Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to ProxySQL with boost mysql. #4760

Open
Lyricia opened this issue Nov 25, 2024 · 0 comments
Open

Cannot connect to ProxySQL with boost mysql. #4760

Lyricia opened this issue Nov 25, 2024 · 0 comments

Comments

@Lyricia
Copy link

Lyricia commented Nov 25, 2024

Hi, Team.

 

In our product, we are using the Boost MySQL connector, but the connection to ProxySQL fails due to a server_capabilities error.

 

boost mysql error:
server_unsupported : The server does not support the minimum required capabilities to establish the connection.

 

While debugging the connection process, the Boost connector received a capabilities flag (2,173,696,559) from ProxySQL and compared it with its client capabilities flag (19,431,944).

1000 0001 1000 1111 1111 1010 0010 1111 -> proxysql server_ capabilities
0000 0001 0010 1000 1000 0010 0000 1000 -> boost::mysql required_caps

Because the received server_caps does not contain the CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA flag, Boost returned client_errc::server_unsupported, and the connection was closed immediately.

 

I set the mysql-server_capabilities value to 2175791663, but the same error still occurred.

 

I think connector cannot receive CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA flag from ProxySQL's server_capabilities.

 

# proxysql --version
2024-11-25 07:09:48 [INFO] Using jemalloc with MALLOC_CONF: config.xmalloc:1, lg_tcache_max:16, opt.prof_accum:1, opt.prof_leak:1, opt.lg_prof_sample:20, opt.lg_prof_interval:30, rc:0
ProxySQL version 2.7.1-16-g2726c27, codename Truls

 

os version - ubuntu 22.04
boost version - 1.85.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant