From 2e2e3cbdba1e1b0b5af1e824f3b81453b545909c Mon Sep 17 00:00:00 2001 From: tiancaiamao Date: Fri, 10 Jul 2020 18:39:02 +0800 Subject: [PATCH] cherry pick #2753 to release-3.1 Signed-off-by: ti-srebot --- faq/tidb-faq.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/faq/tidb-faq.md b/faq/tidb-faq.md index ab20c582ae24b..8bf99ae7f3af7 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).