-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update on how to connect to TiDB using MySQL Client and the limitatio…
- Loading branch information
1 parent
8e9bfd0
commit 4d46b27
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,22 @@ After the installation, you can connect to TiDB using the following command: | |
mysql --host <tidb_server_host> --port 4000 -u root -p --comments | ||
``` | ||
|
||
The MySQL v9.0 client on macOS cannot correctly load the `mysql_native_password` plugin, causing the error `ERROR 2059 (HY000): Authentication plugin 'mysql_native_password' cannot be loaded` when connecting to TiDB. To address this issue, it is recommended to install and use the MySQL v8.0 client to connect to TiDB. Run the following commands to install it: | ||
|
||
```shell | ||
brew install [email protected] | ||
brew unlink mysql | ||
brew link [email protected] | ||
``` | ||
|
||
If you still encounter errors, you can specify the installation path of the MySQL v8.0 client to connect to TiDB. Run the following command: | ||
|
||
```shell | ||
/opt/homebrew/opt/[email protected]/bin/mysql --comments --host ${YOUR_IP_ADDRESS} --port ${YOUR_PORT_NUMBER} -u ${your_user_name} -p | ||
``` | ||
|
||
Replace `/opt/homebrew/opt/[email protected]/bin/mysql` in the preceding command with the installation path of the MySQL v8.0 client in your actual environment. | ||
|
||
</div> | ||
|
||
<div label="MySQL Shell"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters