Skip to content

Commit

Permalink
Update dev-guide-sample-application-nodejs-prisma.md (pingcap#16135) (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jan 25, 2024
1 parent 13d5090 commit 164463a
Showing 1 changed file with 3 additions and 3 deletions.
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 @@ -90,7 +90,7 @@ npm install prisma typescript ts-node @types/node --save-dev
6. 编辑 `.env` 文件,按照如下格式设置环境变量 `DATABASE_URL`,将占位符 `{}` 替换为从连接对话框中复制的参数值:

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

> **Note**
Expand Down Expand Up @@ -126,7 +126,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 +158,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 164463a

Please sign in to comment.