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

fix link in readme #342

Merged
merged 4 commits into from
Aug 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 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,9 +68,9 @@ 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
```toml
proxy:
xhebox marked this conversation as resolved.
Show resolved Hide resolved
pd-addrs: "127.0.0.1:2379"
xhebox marked this conversation as resolved.
Show resolved Hide resolved
```
Expand All @@ -80,13 +80,13 @@ 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