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 #3577

Merged
merged 7 commits into from
Jul 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions faq/tidb-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ TiDB 目前还不支持触发器、存储过程、自定义函数、外键,除

详情参见[与 MySQL 兼容性对比](/mysql-compatibility.md)。

使用 MySQL 8.0 客户端时,如果遇到无法登陆的问题,可以尝试指定 `default-auth` 和 `default-character-set` 参数:

{{< copyable "shell-regular" >}}

```shell
mysql -h 127.0.0.1 -u root -P 4000 --default-auth=mysql_native_password --default-character-set=utf8
```

无法登陆的原因是 MySQL 8.0 会更改了 MySQL 5.7 默认的[密码加密方式](/security-compatibility-with-mysql.md),所以需要添加以上参数指定使用旧的加密方式。

#### 1.1.7 TiDB 支持分布式事务吗?

支持。无论是一个地方的几个节点,还是[跨多个数据中心的多个节点](/multi-data-centers-in-one-city-deployment.md),TiDB 均支持 ACID 分布式事务。
Expand Down