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

proxysql admin module is not compatible with MySQL 8.1.0 #4300

Closed
sun-rui opened this issue Jul 22, 2023 · 1 comment
Closed

proxysql admin module is not compatible with MySQL 8.1.0 #4300

sun-rui opened this issue Jul 22, 2023 · 1 comment

Comments

@sun-rui
Copy link

sun-rui commented Jul 22, 2023

Use the mysql client of version 8.1.0 to connect to the proxysql admin interface, and any command will fail. for example,

# mysql --version
mysql  Ver 8.1.0 for Linux on x86_64 (MySQL Community Server - GPL)

# mysql -uadmin -padmin -P 6032 -h 127.0.0.1 -e "show variables"
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2014 (HY000) at line 1: Commands out of sync; you can't run this command now

But use the mysql client of version 8.0.x (8.0.26 for instance) is OK. I tried to use the strace tool to capture the differences between the two versions, and found the only difference is that the mysql client of version 8.1.0 issues one more query "select $$" to the server.

According to https://dev.mysql.com/doc/relnotes/mysql/8.1/en/news-8-1-0.html , the use of an unquoted identifier starting with the dollar sign and containing one or more dollar signs in addition to the first one generates a syntax error. The mysql client then added a new detection to check if the server supports dollar quotes, code can be found at https://github.com/mysql/mysql-server/blob/mysql-8.1.0/client/mysql.cc#L1269 .

It seems that proxysql admin modules does not handle this probe correctly?

Current workaround is to use the legacy 8.0.x mysql client.

@sun-rui
Copy link
Author

sun-rui commented Jul 22, 2023

add more info:
OS: CentOS 7.9

JavierJF added a commit that referenced this issue Jul 31, 2023
renecannao added a commit that referenced this issue Aug 1, 2023
Fix Admin support for MySQL client `8.1.0` - Closes #4300
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