-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add note about default-auth for MySQL 8.0 clients #3969
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
Merged
Merged
Conversation
This file contains hidden or 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
…ord`,因为 `mysql_native_password` 不再是[默认的插件](https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password)。
a47a004 to
9c5b6c6
Compare
yikeke
approved these changes
Jul 17, 2020
Contributor
yikeke
left a comment
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.
Rest LGTM
Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
Contributor
|
/merge |
Contributor
|
/run-all-tests |
ti-srebot
pushed a commit
to ti-srebot/docs-cn
that referenced
this pull request
Jul 17, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
5 tasks
Contributor
|
cherry pick to release-2.1 in PR #3987 |
ti-srebot
pushed a commit
to ti-srebot/docs-cn
that referenced
this pull request
Jul 17, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
5 tasks
Contributor
|
cherry pick to release-3.0 in PR #3988 |
ti-srebot
pushed a commit
to ti-srebot/docs-cn
that referenced
this pull request
Jul 17, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
5 tasks
Contributor
|
cherry pick to release-3.1 in PR #3989 |
ti-srebot
pushed a commit
to ti-srebot/docs-cn
that referenced
this pull request
Jul 17, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
5 tasks
Contributor
|
cherry pick to release-4.0 in PR #3990 |
TomShawn
added a commit
that referenced
this pull request
Jul 17, 2020
* cherry pick #3969 to release-3.1 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * Update security-compatibility-with-mysql.md * Update user-account-management.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
TomShawn
added a commit
that referenced
this pull request
Jul 17, 2020
ti-srebot
added a commit
that referenced
this pull request
Jul 17, 2020
* cherry pick #3969 to release-2.1 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * Update security-compatibility-with-mysql.md * Update user-account-management.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
ti-srebot
added a commit
that referenced
this pull request
Jul 17, 2020
* cherry pick #3969 to release-3.0 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * Update security-compatibility-with-mysql.md * Update user-account-management.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
require-LGT1
Indicates that the PR requires an LGTM.
status/can-merge
Indicates a PR has been approved by a committer.
status/LGT1
Indicates that a PR has LGTM 1.
translation/from-docs
This PR is translated from a PR in pingcap/docs.
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.
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
The MySQL command line client (
mysql) as well as thelibmysqlclientclient library have changed their default authentication plugin. See https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password for more information about that change.It's no longer possible to connect to a TiDB Server using those clients if the user account has a password set, unless the
default-auth=mysql_native_passwordoption is used.This behavior can be seen in this example:
Note that the error message says "using password: NO", even though a password is given on the command line.
The
--default-auth=mysql_native_passwwordoption allows the connection to succeed:This patch makes several updates to pages in the documentation that deal with MySQL compatibility, setting passwords, and connecting to TiDB using MySQL clients.
What is the related PR or file link(s)?