Skip to content

Commit

Permalink
This is an automated cherry-pick of #16135
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
hey-hoho authored and ti-chi-bot committed Jan 25, 2024
1 parent 13d5090 commit 5711f7d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions develop/dev-guide-sample-application-nodejs-prisma.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ npm install prisma typescript ts-node @types/node --save-dev
6. 编辑 `.env` 文件,按照如下格式设置环境变量 `DATABASE_URL`,将占位符 `{}` 替换为从连接对话框中复制的参数值:

```dotenv
<<<<<<< HEAD
DATABASE_URL=mysql://{user}:{password}@{host}:4000/test?sslaccept=strict
=======
DATABASE_URL='{connection_string}'
>>>>>>> e21a5a285b (Update dev-guide-sample-application-nodejs-prisma.md (#16135))
```
> **Note**
Expand Down Expand Up @@ -126,7 +130,7 @@ npm install prisma typescript ts-node @types/node --save-dev
5. 编辑 `.env` 文件,按照如下格式设置环境变量 `DATABASE_URL`,将占位符 `{}` 替换为从连接对话框中复制的参数值:
```dotenv
DATABASE_URL=mysql://{host}:{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 @@ -158,7 +162,7 @@ npm install prisma typescript ts-node @types/node --save-dev
2. 编辑 `.env` 文件,按照如下格式设置连接信息,将占位符 `{}` 替换为你的 TiDB 集群的连接参数值:
```dotenv
DATABASE_URL=mysql://{user}:{password}@{host}:4000/test
DATABASE_URL='mysql://{user}:{password}@{host}:4000/test'
```
如果你在本地运行 TiDB 集群,默认的 Host 是 `127.0.0.1`, 默认用户名为 `root`, 密码为空。
Expand Down

0 comments on commit 5711f7d

Please sign in to comment.