Skip to content

Commit

Permalink
develop: replace angle brackets with curly brackets (#16474)
Browse files Browse the repository at this point in the history
  • Loading branch information
ran-huang authored Feb 7, 2024
1 parent fbbeb7d commit 6071aa0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
32 changes: 16 additions & 16 deletions develop/dev-guide-sample-application-ruby-mysql2.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
cp .env.example .env
```

6. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `<>` with connection parameters in the connection dialog:
6. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `{}` with connection parameters in the connection dialog:

```dotenv
DATABASE_HOST=<host>
DATABASE_PORT=4000
DATABASE_USER=<user>
DATABASE_PASSWORD=<password>
DATABASE_NAME=test
DATABASE_ENABLE_SSL=true
DATABASE_HOST={host}
DATABASE_PORT=4000
DATABASE_USER={user}
DATABASE_PASSWORD={password}
DATABASE_NAME=test
DATABASE_ENABLE_SSL=true
```

> **Note**
Expand All @@ -133,16 +133,16 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
cp .env.example .env
```

5. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `<>` with connection parameters in the connection dialog:
5. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `{}` with connection parameters in the connection dialog:

```dotenv
DATABASE_HOST=<host>
DATABASE_HOST={host}
DATABASE_PORT=4000
DATABASE_USER=<user>
DATABASE_PASSWORD=<password>
DATABASE_USER={user}
DATABASE_PASSWORD={password}
DATABASE_NAME=test
DATABASE_ENABLE_SSL=true
DATABASE_SSL_CA=<downloaded_ssl_ca_path>
DATABASE_SSL_CA={downloaded_ssl_ca_path}
```

> **Note**
Expand All @@ -162,13 +162,13 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
cp .env.example .env
```

2. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `<>` with your own TiDB connection information:
2. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `{}` with your own TiDB connection information:

```dotenv
DATABASE_HOST=<host>
DATABASE_HOST={host}
DATABASE_PORT=4000
DATABASE_USER=<user>
DATABASE_PASSWORD=<password>
DATABASE_USER={user}
DATABASE_PASSWORD={password}
DATABASE_NAME=test
```

Expand Down
8 changes: 4 additions & 4 deletions develop/dev-guide-sample-application-ruby-rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
6. Edit the `.env` file, set up the `DATABASE_URL` environment variable as follows, and copy the connection string from the connection dialog as the variable value.

```dotenv
DATABASE_URL=mysql2://<user>:<password>@<host>:<port>/<database_name>?ssl_mode=verify_identity
DATABASE_URL=mysql2://{user}:{password}@{host}:{port}/{database_name}?ssl_mode=verify_identity
```

> **Note**
Expand Down Expand Up @@ -126,7 +126,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
5. Edit the `.env` file, set up the `DATABASE_URL` environment variable as follows, copy the connection string from the connection dialog as the variable value, and set the `sslca` query parameter to the file path of the CA certificate downloaded from the connection dialog:

```dotenv
DATABASE_URL=mysql2://<user>:<password>@<host>:<port>/<database>?ssl_mode=verify_identity&sslca=/path/to/ca.pem
DATABASE_URL=mysql2://{user}:{password}@{host}:{port}/{database}?ssl_mode=verify_identity&sslca=/path/to/ca.pem
```

> **Note**
Expand All @@ -146,10 +146,10 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
cp .env.example .env
```

2. Edit the `.env` file, set up the `DATABASE_URL` environment variable as follows, and replace the `<user>`, `<password>`, `<host>`, `<port>`, and `<database>` with your own TiDB connection information:
2. Edit the `.env` file, set up the `DATABASE_URL` environment variable as follows, and replace the `{user}`, `{password}`, `{host}`, `{port}`, and `{database}` with your own TiDB connection information:

```dotenv
DATABASE_URL=mysql2://<user>:<password>@<host>:<port>/<database>
DATABASE_URL=mysql2://{user}:{password}@{host}:{port}/{database}
```

If you are running TiDB locally, the default host address is `127.0.0.1`, and the password is empty.
Expand Down

0 comments on commit 6071aa0

Please sign in to comment.