-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: add auth switch to mysql_native_password (#19603) #19959
Merged
jackysp
merged 2 commits into
pingcap:release-4.0
from
ti-srebot:release-4.0-e48c4b0a3881
Sep 16, 2020
Merged
server: add auth switch to mysql_native_password (#19603) #19959
jackysp
merged 2 commits into
pingcap:release-4.0
from
ti-srebot:release-4.0-e48c4b0a3881
Sep 16, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: ti-srebot <[email protected]>
/run-all-tests |
/run-all-tests |
jackysp
reviewed
Sep 12, 2020
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
LGTM |
ti-srebot
added
status/LGT2
Indicates that a PR has LGTM 2.
and removed
status/LGT1
Indicates that a PR has LGTM 1.
labels
Sep 12, 2020
This was referenced Sep 12, 2020
/merge |
ti-srebot
added
the
status/can-merge
Indicates a PR has been approved by a committer.
label
Sep 16, 2020
/run-all-tests |
jackysp
approved these changes
Sep 16, 2020
@ti-srebot merge failed. |
/run-integration-compatibility-test |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component/server
status/can-merge
Indicates a PR has been approved by a committer.
status/LGT2
Indicates that a PR has LGTM 2.
type/4.0-cherry-pick
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cherry-pick #19603 to release-4.0
What problem does this PR solve?
Issue Number: Fixes #17875
Problem Summary:
The TiDB server does not allow clients from MySQL 8 servers to connect when they have a password.
What is changed and how it works?
What's Changed:
Support for MySQL 8 clients has been added.
How it Works:
The MySQL protocol allows the server to ask the client to change authentication plugins. This does not explicitly allow support for MySQL 8's
caching_sha2_password
, but it sidesteps the issue to allow MySQL 8 clients to connect to TiDB. Any client that speakscaching_sha2_password
is asked to change to usemysql_native_password
.Related changes
(It is certainly not required, butI think this is useful enough to cherry-pick.)
Check List
Tests
The go mysql connector does not permit sending
caching_sha2_password
, and then being downgraded, so it is hard to include in the testsuite directly under./server/server_test.go
. What I did was used a MySQL 8.0 CLI and performed the following:This confirms that it both allows non-passworded accounts and passworded to work correctly.
Side effects
Release note