Skip to content

Commit 3cbd5b3

Browse files
authored
develop: update env file code examples (#16612) (#16644)
1 parent 6ba1a8a commit 3cbd5b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

develop/dev-guide-sample-application-nodejs-prisma.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
101101
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:
102102

103103
```dotenv
104-
DATABASE_URL={connection_string}
104+
DATABASE_URL='{connection_string}'
105105
```
106106

107107
> **Note**
@@ -138,7 +138,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
138138
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:
139139

140140
```dotenv
141-
DATABASE_URL=mysql://{user}:{password}@{host}:4000/test?sslaccept=strict&sslcert={downloaded_ssl_ca_path}
141+
DATABASE_URL='mysql://{user}:{password}@{host}:4000/test?sslaccept=strict&sslcert={downloaded_ssl_ca_path}'
142142
```
143143

144144
> **Note**
@@ -167,7 +167,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
167167
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:
168168

169169
```dotenv
170-
DATABASE_URL=mysql://{user}:{password}@{host}:4000/test
170+
DATABASE_URL='mysql://{user}:{password}@{host}:4000/test'
171171
```
172172

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

develop/dev-guide-sample-application-ruby-rails.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
9797
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.
9898

9999
```dotenv
100-
DATABASE_URL=mysql2://{user}:{password}@{host}:{port}/{database_name}?ssl_mode=verify_identity
100+
DATABASE_URL='mysql2://{user}:{password}@{host}:{port}/{database_name}?ssl_mode=verify_identity'
101101
```
102102

103103
> **Note**
@@ -126,7 +126,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
126126
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:
127127

128128
```dotenv
129-
DATABASE_URL=mysql2://{user}:{password}@{host}:{port}/{database}?ssl_mode=verify_identity&sslca=/path/to/ca.pem
129+
DATABASE_URL='mysql2://{user}:{password}@{host}:{port}/{database}?ssl_mode=verify_identity&sslca=/path/to/ca.pem'
130130
```
131131

132132
> **Note**
@@ -149,7 +149,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
149149
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:
150150

151151
```dotenv
152-
DATABASE_URL=mysql2://{user}:{password}@{host}:{port}/{database}
152+
DATABASE_URL='mysql2://{user}:{password}@{host}:{port}/{database}'
153153
```
154154

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

0 commit comments

Comments
 (0)