Skip to content

Commit 8d1070f

Browse files
authored
Add note about default-auth for MySQL 8.0 clients (pingcap#2669) (pingcap#2741)
Signed-off-by: sre-bot <sre-bot@pingcap.com>
1 parent c60de0f commit 8d1070f

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

connectors-and-apis.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ TiDB is compatible with all Connectors and APIs of MySQL (5.6, 5.7), including:
2929

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

32+
> **Note:**
33+
>
34+
> + 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).
35+
3236
- [MySQL Connector/C++](https://dev.mysql.com/doc/refman/5.7/en/connector-cpp-info.html):to enable C++ applications to connect to MySQL
3337
- [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
3438
- [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

security-compatibility-with-mysql.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ aliases: ['/docs/v2.1/reference/security/compatibility/']
1010
TiDB supports similar security functionality to MySQL 5.7, with the following exceptions:
1111

1212
- Only the `mysql_native_password` authentication scheme is supported
13+
- 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`.
1314
- External authentication (such as with LDAP) is not currently supported
1415
- Column level permissions are not supported
1516
- Using certificates for authentication is not supported [#9708](https://github.com/pingcap/tidb/issues/9708)

tidb-specific-system-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ set @@global.tidb_distsql_scan_concurrency = 10
249249
- Default value: 2
250250
- This variable is used to increase the weight of the maximum time of TiDB `backoff`, that is, the maximum retry time for sending a retry request when an internal network or other component (TiKV, PD) failure is encountered. This variable can be used to adjust the maximum retry time and the minimum value is 1.
251251

252-
For example, the base timeout for TiDB to take TSO from PD is 15 seconds. When `tidb_backoff_weight = 2`, the maximum timeout for taking TSO is: *base time * 2 = 30 seconds*.
252+
For example, the base timeout for TiDB to take TSO from PD is 15 seconds. When `tidb_backoff_weight = 2`, the maximum timeout for taking TSO is: *base time \* 2 = 30 seconds*.
253253

254254
In the case of a poor network environment, appropriately increasing the value of this variable can effectively alleviate error reporting to the application end caused by timeout. If the application end wants to receive the error information more quickly, minimize the value of this variable.
255255

user-account-management.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Or use the abbreviation of command line parameters:
2525
shell> mysql -P 4000 -u xxx -p
2626
```
2727

28+
> **Note:**
29+
>
30+
> + 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).
31+
2832
## Add user accounts
2933

3034
You can create TiDB accounts in two ways:

0 commit comments

Comments
 (0)