Prisma

9次阅读
没有评论

生成一个模块存放在 node_modules/@prisma/client

FQA

npx prisma migrate dev --name init --schema server/database/schema.prisma 
Environment variables loaded from .env
Prisma schema loaded from server\database\schema.prisma
Datasource "db": MySQL database "nuxt_template" at "192.168.2.188:3306"

Error: P3014

Prisma Migrate could not create the shadow database. Please make sure the database user has permission to create databases. Read more about the shadow database (and workarounds) at https://pris.ly/d/migrate-shadow

Original error: Error code: P1010

User `nuxt_template` was denied access on the database `nuxt_template`

两个处理方式:

正文完
 0
wujingquan
版权声明:本站原创文章,由 wujingquan 于2025-01-13发表,共计643字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)