收藏
回答

微信云托管 prisma 无法连接数据库是什么原因?构建阶段无法连接数据库吗?

[2023-05-08 23:59:41] $ dotenv -e .env -- npx prisma migrate dev

[2023-05-08 23:59:42] Environment variables loaded from .env

[2023-05-08 23:59:42] Prisma schema loaded from prisma/schema.prisma

[2023-05-08 23:59:42] Datasource "db": MySQL database "xxxx" at "10.39.106.232:3306"

[2023-05-08 23:59:42]

[2023-05-08 23:59:47] Error: P1001: Can't reach database server at `10.39.106.232`:`3306`

[2023-05-08 23:59:47]

[2023-05-08 23:59:47] Please make sure your database server is running at `10.39.106.232`:`3306`.

[2023-05-08 23:59:47] npm notice

[2023-05-08 23:59:47] npm notice New minor version of npm available! 9.5.1 -> 9.6.6

[2023-05-08 23:59:47] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.6>

[2023-05-08 23:59:47] npm notice Run `npm install -g npm@9.6.6` to update!

[2023-05-08 23:59:47] npm notice

[2023-05-08 23:59:47] error Command failed with exit code 1

最后一次编辑于  2023-05-09
回答关注问题邀请回答
收藏

1 个回答

  • 小朋友有问号
    小朋友有问号
    06-15

    老哥,解决了嘛?我内网也连不上,外网可以。

    06-15
    有用
    回复
登录 后发表内容
问题标签