From a6439cc8dc4672db3cdeded5525db17a05a8470b Mon Sep 17 00:00:00 2001 From: dengfuping Date: Mon, 2 Dec 2024 20:36:57 +0800 Subject: [PATCH] 111 --- .github/workflows/basic-workflow.yml | 2 +- javascript/prisma/README-CN.md | 2 +- javascript/prisma/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/basic-workflow.yml b/.github/workflows/basic-workflow.yml index 2031350..ca47ce2 100644 --- a/.github/workflows/basic-workflow.yml +++ b/.github/workflows/basic-workflow.yml @@ -59,7 +59,7 @@ jobs: uses: oceanbase/setup-oceanbase-ce@v1 with: network: "host" - image_tag: ${{ inputs.oceanbase_image_tag || '' }} + image_tag: ${{ inputs.oceanbase_image_tag || null }} - name: Run sample for ${{ inputs.module }} run: | cd ${{ inputs.language }}/${{ inputs.module }} || exit diff --git a/javascript/prisma/README-CN.md b/javascript/prisma/README-CN.md index 5fa3a30..1446351 100644 --- a/javascript/prisma/README-CN.md +++ b/javascript/prisma/README-CN.md @@ -33,7 +33,7 @@ npm install 修改 `.env` 中的数据库连接串,格式如下。注意需要设置 `prefer_socket=false`,以避免和 OceanBase 建立连接时报错。 ```bash -DATABASE_URL="mysql://username:password@localhost:3306/test?prefer_socket=false" +DATABASE_URL="mysql://root:@127.0.0.1:2881/test?prefer_socket=false&a=.psdb.cloud" ``` 执行以下命令,将 `prisma/schema.prisma` 中定义的 `User`、`Post` 和 `Profile` 模型同步到数据库中: diff --git a/javascript/prisma/README.md b/javascript/prisma/README.md index 7f08205..a158b07 100644 --- a/javascript/prisma/README.md +++ b/javascript/prisma/README.md @@ -33,7 +33,7 @@ npm install Modify the connection string in the `.env` file, formatted as follows. Note that `prefer_socket=false` must be set to avoid errors when connecting to OceanBase. ```bash -DATABASE_URL="mysql://username:password@localhost:3306/test?prefer_socket=false" +DATABASE_URL="mysql://root:@127.0.0.1:2881/test?prefer_socket=false&a=.psdb.cloud" ``` Execute the following command to synchronize the `User`, `Post` and `Profile` data models defined in `prisma/schema.prisma` to the database: