Skip to content

Commit

Permalink
Add instruction on how to connect to mysql (pingcap#4277)
Browse files Browse the repository at this point in the history
* add instruction on how to connect to mysql

* Apply suggestions from code review

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
CharLotteiu and TomShawn authored Nov 24, 2020
1 parent 7a50c96 commit 03e9608
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions quick-start-with-tidb.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,21 @@ As a distributed system, a basic TiDB test cluster usually consists of 2 TiDB in

4. Start a new session to access TiDB:

{{< copyable "shell-regular" >}}
1. Install the MySQL client. If it is already installed, skip this step.

```shell
mysql --host 127.0.0.1 --port 4000 -u root
```
{{< copyable "shell-regular" >}}

```shell
yum -y install mysql
```

2. Use the MySQL client to connect to TiDB.

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

```shell
mysql --host 127.0.0.1 --port 4000 -u root
```

5. Access the Prometheus dashboard of TiDB at <http://127.0.0.1:9090>.

Expand Down Expand Up @@ -275,6 +285,14 @@ Other requirements for the target machine:
8. Access the cluster:
- Install the MySQL client. If it is already installed, skip this step.
{{< copyable "shell-regular" >}}
```shell
yum -y install mysql
```
- Access TiDB. The password is empty:
{{< copyable "shell-regular" >}}
Expand Down

0 comments on commit 03e9608

Please sign in to comment.