Skip to content

Commit

Permalink
auth: Remove note about MySQL 8.0 auth plugin (#3896) (#3917)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <[email protected]>
  • Loading branch information
ti-srebot authored Sep 16, 2020
1 parent 8647d5f commit 7b4f949
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
4 changes: 0 additions & 4 deletions connectors-and-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ TiDB is compatible with all Connectors and APIs of MySQL (5.6, 5.7), including:

Oracle develops the following APIs and TiDB is compatible with all of them:

> **Note:**
>
> + To connect to TiDB using a MySQL Connector from MySQL 8.0, you must explicitly specify `default-auth=mysql_native_password`, because `mysql_native_password` is [no longer the default plugin](https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password).
- [MySQL Connector/C++](https://dev.mysql.com/doc/refman/5.7/en/connector-cpp-info.html):to enable C++ applications to connect to MySQL
- [MySQL Connector/J](https://dev.mysql.com/doc/refman/5.7/en/connector-j-info.html):to enable Java applications to connect to MySQL using the standard JDBC API
- [MySQL Connector/Net](https://dev.mysql.com/doc/refman/5.7/en/connector-net-info.html):to enable .Net applications to connect to MySQL; [MySQL for Visual Studio](https://dev.mysql.com/doc/visual-studio/en/) uses this; support Microsoft Visual Studio 2012, 2013, 2015 and 2017 versions
Expand Down
12 changes: 1 addition & 11 deletions faq/tidb-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,7 @@ Yes, it is. When all the required services are started, you can use TiDB as easi

#### How is TiDB compatible with MySQL?

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

#### Does TiDB support distributed transactions?

Expand Down
1 change: 0 additions & 1 deletion security-compatibility-with-mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ aliases: ['/docs/stable/security-compatibility-with-mysql/','/docs/v4.0/security
TiDB supports similar security functionality to MySQL 5.7, with the following exceptions:

- Only the `mysql_native_password` password-based and certificate-based authentication is supported
- In MySQL 8.0, `mysql_native_password` is [no longer the default/preferred plugin](https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password). To connect to TiDB using a MySQL client from MySQL 8.0, you must explicitly specify `default-auth=mysql_native_password`.
- External authentication (such as with LDAP) is not currently supported
- Column level permissions are not supported
- Password expiry, as well as password last-changed tracking and password lifetime are not supported [#9709](https://github.com/pingcap/tidb/issues/9709)
Expand Down
4 changes: 0 additions & 4 deletions user-account-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ Or use the abbreviation of command line parameters:
shell> mysql -P 4000 -u xxx -p
```

> **Note:**
>
> + To connect to TiDB using a MySQL client from MySQL 8.0, you must explicitly specify `--default-auth=mysql_native_password`, because `mysql_native_password` is [no longer the default plugin](https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password).
## Add user accounts

You can create TiDB accounts in two ways:
Expand Down

0 comments on commit 7b4f949

Please sign in to comment.