-
Notifications
You must be signed in to change notification settings - Fork 28
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
create and switch user failed on tiproxy #127
Comments
It is same if you connect 4000 port. And I can not reproduce this if I connect to a mysql server. I doubt it is tidb bug? @aytrack |
maybe you need create a user with host
|
I can confirm that on the same host, tiproxy works. Maybe there is something wrong with your setup. Remote cases should work as the local one, as long as proxy-protocol is enabled. JDBC fails because tidb/tiproxy can not handle |
Fixed by pingcap/tidb#38830, #132. |
The reason: JDBC uses the TiProxy salt to generate the auth data in COM_CHANGE_USER, instead of using the TiDB salt. The details:
|
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
this case is come from jdbc test
2. What did you expect to see? (Required)
like connect to the tidb directly
3. What did you see instead (Required)
4. What is your version? (Required)
376829c
The text was updated successfully, but these errors were encountered: