alexwasik
06/28/2022, 7:26 PMjanpio
undefined is weird there.janpio
nikolasburk
alexwasik
06/29/2022, 10:58 AMDATABASE_URL="<postgresql://root@localhost:26257?sslmode=enabled>"nikolasburk
DATABASE_URL="<postgresql://root@localhost:26257/mydb?sslmode=enabled>"alexwasik
06/29/2022, 11:10 AMalexwasik
06/29/2022, 11:10 AMThe provided database string is invalid. invalid port number in database URL. Please refer to the documentation in <https://www.prisma.io/docs/reference/database-reference/connection-urls> for constructing a correct connection string. In some cases, certain characters must be escaped. Please check the string for any illegal characters.alexwasik
06/29/2022, 11:10 AMalexwasik
06/29/2022, 11:11 AMps -ef | grep cockroach | grep -v grep
501 66649 1 0 11:56AM ttys002 64:05.31 cockroach start --certs-dir=certs --store=node1 --listen-addr=localhost:26257 --http-addr=localhost:8080 --join=localhost:26257,localhost:26258,localhost:26259
501 66711 1 0 11:57AM ttys002 56:34.34 cockroach start --certs-dir=certs --store=node2 --listen-addr=localhost:26258 --http-addr=localhost:8081 --join=localhost:26257,localhost:26258,localhost:26259
501 66757 1 0 11:57AM ttys002 54:11.66 cockroach start --certs-dir=certs --store=node3 --listen-addr=localhost:26259 --http-addr=localhost:8082 --join=localhost:26257,localhost:26258,localhost:26259alexwasik
06/29/2022, 11:15 AMdb error: ERROR: permission denied to create databasealexwasik
06/29/2022, 11:21 AMDATABASE_URL="<postgresql://secret:supersecret@localhost:26257/defaultdb?sslmode=public>"alexwasik
06/29/2022, 11:22 AMdefaultdb, so that's good. but time to follow the docs because of this error.
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>alexwasik
06/29/2022, 11:52 AMCREATEDB. We are good for nowalexwasik
06/29/2022, 11:56 AMThe following migration(s) have been created and applied from new schema changes:
migrations/
└─ 20220629115129_init/
└─ migration.sql
Your database is now in sync with your schema.
Running generate... (Use --skip-generate to skip the generators)
Error: Get DMMF: Schema parsing - Error while interacting with query-engine-node-api library
Error code: P1012
error: Datasource provider not known: "cockroachdb".
--> schema.prisma:6
|
5 | datasource db {
6 | provider = "cockroachdb"
|
Validation Error Count: 1alexwasik
06/29/2022, 12:18 PM@prisma/client was not 4.0.0janpio
janpio