Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Prisma postgresql - Prisma
P
Prisma
•
13mo ago
•
4 replies
Matusko167
Prisma postgresql
Hello i have a problem with generate client
Environment variables loaded from
.
.
/
.env
Prisma schema loaded from schema
.prisma
Datasource
"db
"
: PostgreSQL database
Error
: Prisma schema validation
-
(get
-config wasm
)
Error code
: P1012
error
: Error validating datasource
db
db
: the URL must start with the protocol
postgresql://
postgresql://
or
postgres://
postgres://
.
To use a URL with protocol
prisma://
prisma://
the Data Proxy must be enabled via
prisma generate --data-proxy
prisma generate --data-proxy
.
More information about Data Proxy
:
https://pris.ly/d/data-proxy
-
-
> schema
.
p
r
i
s
m
a
:3
|
2
| provider
=
"postgres
"
3
| url
= env
(
"DATABASE
_URL
"
)
|
Validation Error Count
: 1
[Context
: getConfig
]
Prisma CLI Version
: 4
.16
.0
my env
=
DATABASE
_URL
=
"prisma
+
p
o
s
t
g
r
e
s
:
/
/accelerate
.prisma
-data
.net
/
?api
_key
=xxxx
"
datasource db
{
provider
=
"postgres
"
url
= env
(
"DATABASE
_URL
"
)
}
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Possible to use dexter with postgresql + prisma?
P
Prisma / help-and-questions
9mo ago
Using Prisma with Both SQLite and PostgreSQL
P
Prisma / help-and-questions
10mo ago
Does Prisma support executing PostgreSQL anonymous code blocks?
P
Prisma / help-and-questions
9mo ago
Prisma so slow in localhost with remote Postgresql (NextJS)
P
Prisma / help-and-questions
2y ago