diff --git a/faq/tidb-faq.md b/faq/tidb-faq.md index 31462bf44d45a..38e4cf4849e3b 100644 --- a/faq/tidb-faq.md +++ b/faq/tidb-faq.md @@ -41,6 +41,16 @@ 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). +If you use the MySQL 8.0 client and it fails to connect to TiDB, try to add the `default-auth` and `default-character-set` options: + +{{< copyable "shell-regular" >}} + +```shell +mysql -h 127.0.0.1 -u root -P 4000 --default-auth=mysql_native_password --default-character-set=utf8 +``` + +This problem occurs because MySQL 8.0 changes the [authentication plugin](/security-compatibility-with-mysql.md) default in MySQL 5.7. To solve this problem, you need to add the options above to specify using the old encryption method. + #### 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).