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

develop: update env file code examples (#16612) #16644

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions develop/dev-guide-sample-application-nodejs-prisma.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
6. Edit the `.env` file, set up the environment variable `DATABASE_URL` as follows, and replace the corresponding placeholders `{}` with the connection string in the connection dialog:

```dotenv
DATABASE_URL={connection_string}
DATABASE_URL='{connection_string}'
```

> **Note**
Expand Down Expand Up @@ -138,7 +138,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
5. Edit the `.env` file, set up the environment variable `DATABASE_URL` as follows, replace the corresponding placeholders `{}` with connection parameters on the connection dialog:

```dotenv
DATABASE_URL=mysql://{user}:{password}@{host}:4000/test?sslaccept=strict&sslcert={downloaded_ssl_ca_path}
DATABASE_URL='mysql://{user}:{password}@{host}:4000/test?sslaccept=strict&sslcert={downloaded_ssl_ca_path}'
```

> **Note**
Expand Down Expand Up @@ -167,7 +167,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
2. Edit the `.env` file, set up the environment variable `DATABASE_URL` as follows, replace the corresponding placeholders `{}` with connection parameters of your TiDB cluster:

```dotenv
DATABASE_URL=mysql://{user}:{password}@{host}:4000/test
DATABASE_URL='mysql://{user}:{password}@{host}:4000/test'
```

If you are running TiDB locally, the default host address is `127.0.0.1`, and the password is empty.
Expand Down
6 changes: 3 additions & 3 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 @@ -149,7 +149,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
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
Loading