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

Update on how to connect to TiDB using MySQL Client and the limitations of the Global indexes #19759

Merged
merged 8 commits into from
Dec 25, 2024
Merged
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
hfxsd authored Dec 25, 2024
commit e11babdbd3db5e4239a2332f107b2b22b499cb7a
4 changes: 2 additions & 2 deletions develop/dev-guide-connect-to-tidb.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ 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:
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 mysql-client@8.0
brew unlink mysql
brew link mysql-client@8.0
```

If you still encounter errors, try to specify the installation path of the MySQL v8.0 Client to use it for connecting to TiDB. Run the following command to install it:
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/mysql-client@8.0/bin/mysql --comments --host ${YOUR_IP_ADDRESS} --port ${YOUR_PORT_NUMBER} -u ${your_user_name} -p
Expand Down
Loading