-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
server: Improve compatibility with MySQL 5.5 and 5.6 clients #32338
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
34d0aa4
to
67bed88
Compare
67bed88
to
50f3bfb
Compare
/label affects-5.4 |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/178ad0487e2a007efb36dbdf4bd5cdbb04b8183a |
Without this PR
With this PR
(from https://github.com/dveeden/tidb_client_test @ 47064e5426a60ada71436d6462d9a5e924dc7a40 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@seiya-annie: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This is for clients connecting over a UNIX domain socket to a server with `caching_sha2_password` as default auth. Test from https://github.com/dveeden/tidb_client_test v0.0.1 ``` TiDB Client Test Connected to: Release Version: v5.5.0-alpha-374-gc55ff5018 Edition: Community Git Commit Hash: c55ff5018c9027e50cc3d55b863c2e7902d4e848 Git Branch: old_nopw_client UTC Build Time: 2022-02-18 14:39:04 GoVersion: go1.18rc1 Race Enabled: false TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306 Check Table Before Drop: false Clients: /home/dvaneeden/opt/mysql/5.1.73/bin/mysql /home/dvaneeden/opt/mysql/5.5.62/bin/mysql /home/dvaneeden/opt/mysql/5.6.44/bin/mysql /home/dvaneeden/opt/mysql/5.7.31/bin/mysql /home/dvaneeden/opt/mysql/5.7.36/bin/mysql /home/dvaneeden/opt/mysql/8.0.22/bin/mysql /home/dvaneeden/opt/mysql/8.0.25/bin/mysql /home/dvaneeden/opt/mysql/8.0.26/bin/mysql /home/dvaneeden/opt/mysql/8.0.27/bin/mysql /home/dvaneeden/opt/mysql/8.0.28/bin/mysql ----------------------------------------------- Test results for test with mysql_native_password as default authentication format auth native native native native sha2 sha2 socket socket user nopw nopw native native sha2 sha2 socket socket connection TCP socket TCP socket TCP socket TCP socket 5.1.73 ✅ ✅ ✅ ✅ ✔️ ✔️ ✔️ ✔️ 5.5.62 ✅ ✅ ✅ ✅ ✔️ ✔️ ✔️ ✅ 5.6.44 ✅ ✅ ✅ ✅ ✔️ ✔️ ✔️ ✅ 5.7.31 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 5.7.36 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.22 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.25 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.26 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.27 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.28 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ ----------------------------------------------- Test results for test with caching_sha2_password as default authentication format auth native native native native sha2 sha2 socket socket user nopw nopw native native sha2 sha2 socket socket connection TCP socket TCP socket TCP socket TCP socket 5.1.73 ✅ ✅ ✅ ✅ ✔️ ✔️ ✔️ ✔️ 5.5.62 ✅ ✅ ✅ ✅ ✔️ ✔️ ✔️ ✅ 5.6.44 ✅ ✅ ✅ ✅ ✔️ ✔️ ✔️ ✅ 5.7.31 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 5.7.36 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.22 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.25 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.26 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.27 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ 8.0.28 ✅ ✅ ✅ ✅ ✅ ✅ ✔️ ✅ ``` I created and used https://github.com/dveeden/sock_debug to troubleshoot this.
With my latest commit added:
|
Have some error in the linter. Please fix it. |
/run-mysql-test |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 3fa1d02
|
…ingcap#32338)" This reverts commit 7e8ca4c.
What problem does this PR solve?
Issue Number: close #32334
Problem Summary:
With a MySQL 5.5 or MySQL 5.6 client connecting to an account in TiDB that uses
mysql_native_password
,as authentication plugin but doesn't have a password set results in connection failures.
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note