Skip to content
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

faq: update mysql8 client fail to connect tidb #2753

Merged
merged 9 commits into from
Jul 10, 2020
8 changes: 8 additions & 0 deletions faq/tidb-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ Yes, it is. When all the required services are started, you can use TiDB as easi

Currently, TiDB supports the majority of MySQL 5.7 syntax, but does not support trigger, stored procedures, user-defined functions, and foreign keys. For more details, see [Compatibility with MySQL](/mysql-compatibility.md).

When using the MySQL 8.0 client, if it fails to connect to TiDB, try to add the `default-auth` and `default-character-set` options:
tiancaiamao marked this conversation as resolved.
Show resolved Hide resolved

tiancaiamao marked this conversation as resolved.
Show resolved Hide resolved
```
tiancaiamao marked this conversation as resolved.
Show resolved Hide resolved
mysql -h 127.0.0.1 -u root -P 4000 --default-auth=mysql_native_password --default-character-set=utf8
```

This problem is caused by charset and [authentication scheme related compatibility](/security-compatibility-with-mysql.md).
tiancaiamao marked this conversation as resolved.
Show resolved Hide resolved

#### How is TiDB highly available?

TiDB is self-healing. All of the three components, TiDB, TiKV and PD, can tolerate failures of some of their instances. With its strong consistency guarantee, whether it’s data machine failures or even downtime of an entire data center, your data can be recovered automatically. For more information, see [TiDB architecture](/architecture.md).
Expand Down