Skip to content

Commit

Permalink
Update dev-guide-sample-application-nodejs-prisma.md (pingcap#16135)
Browse files Browse the repository at this point in the history
  • Loading branch information
hey-hoho authored Jan 25, 2024
1 parent 4611bf4 commit e21a5a2
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 @@ -91,7 +91,7 @@ npm install prisma typescript ts-node @types/node --save-dev
6. 编辑 `.env` 文件,按照如下格式设置环境变量 `DATABASE_URL`,将占位符 `{}` 替换为从连接对话框中复制的连接字符串:

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

> **Note**
Expand Down Expand Up @@ -127,7 +127,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 @@ -159,7 +159,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 e21a5a2

Please sign in to comment.