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

Update dev-guide-sample-application-nodejs-prisma.md #16135

Merged
merged 2 commits into from
Jan 25, 2024
Merged
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 @@ -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