-
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
Fail to connect to TiDB using the mysql 8.0 client #7606
Comments
MariaDB client 5.5 is ok too.
|
Per our source code, |
i show my public ip(221.12.20.22). I don't know why connetion need net.LookupAddr("22.20.12.221"). what's different between mysql clinet 8.0 and client 5.x? |
My bad, I overlook |
duplicate? @zhexuany my question has nothing to do with the character set. It should be another problem. |
Above code snippet is where the err comes from. According to the comment of
A easy checking is writing a |
It is likely to be a dns resolver problem. |
Yes, I tried and got the error. What I don't understand is why two public ip communications need it. |
|
Have you ever change the root password? @meilihao |
If |
@tiancaiamao I am sure I have used the correct password. |
So I suspect it's caused by this: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-11.html
MySQL 8.0 changes the default authentication plugin from mysql_native_password to caching_sha2_password. We'll take a look to confirm that, thanks for your feedback. @meilihao |
Last weak, i upgraded tidb to 2.1 and got the same error on mysql client 8.0.13. Today i find that connect tidb with
|
I think this should be added to FAQ for user to use mysql 8.0 client. @shenli |
What did you expect to see?
mysql client works.
What did you see instead?
tidb.log:
And i found
mysql-client-5.7
is ok:tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: