-
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
tidb returns 'Unknown auth plugin' when some old clients didn't set auth plugin in login request #27855
Comments
/type compatibility |
After capturing network traffic, we found that some old clients won't set auth plugin in the login request. |
Reproducing this: Setup: CREATE USER 'u1'@'%' IDENTIFIED WITH mysql_native_password BY 'abc';
CREATE USER 'u2'@'%' IDENTIFIED WITH caching_sha2_password BY 'abc'; Test:
For the tests that didn't give an error this showed up in the logs, and using the connection didn't work:
|
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Use a mysql 5.1 client to connect tidb 5.2
2. What did you expect to see? (Required)
Connect success
3. What did you see instead (Required)
TiDB returns "1105 Unknown auth plugin" error.
4. What is your TiDB version? (Required)
v5.2.0
The text was updated successfully, but these errors were encountered: