Skip to content

Commit

Permalink
fix link in readme (#342)
Browse files Browse the repository at this point in the history
Co-authored-by: xhe <xw897002528@gmail.com>
  • Loading branch information
shawn0915 and xhebox authored Aug 23, 2023
1 parent 6780eee commit 44234f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $ make docker

For example, if you use openssl:

```
```shell
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
-keyout key.pem -out cert.pem -subj "/CN=example.com"
```
Expand All @@ -68,25 +68,25 @@ Where the `session-token-signing-cert` and `session-token-signing-key` are the p

And then start the TiDB cluster with the config.toml.

3. Update the [`proxy.yaml`](/conf/proxy.toml) of TiProxy:
3. Update the [`proxy.toml`](/conf/proxy.toml) of TiProxy:

```yaml
proxy:
pd-addrs: "127.0.0.1:2379"
```toml
[proxy]
pd-addrs = "127.0.0.1:2379"
```

Where the `pd-addrs` contains the addresses of all PD instances.

And then start TiProxy:

```shell
$ bin/tiproxy --config=conf/proxy.yaml
bin/tiproxy --config=conf/proxy.toml
```

4. Connect to TiProxy with your client. The default port is 6000:

```shell
$ mysql -h127.0.0.1 -uroot -P6000
mysql -h127.0.0.1 -uroot -P6000
```

### Run in k8s
Expand Down

0 comments on commit 44234f6

Please sign in to comment.