I have ```datasource db { provider = "mysql" u...
# prisma-client
f
I have
Copy code
datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["dataProxy"]
}
to be exact, and am getting
Copy code
error: Error validating datasource `db`: the URL must start with the protocol `mysql://`.
  -->  schema.prisma:6
l
Please provide the value of
DATABASE_URL
from
.env
f
for obvious reasons, I can't share it fully, but it's in the form of
<prisma://aws-us-east-1.prisma-data.com/?api_key=XXXX>
it shoulden't require the mysql:// prefix, since I'm using the data proxy
and yes, I have
Copy code
PRISMA_CLIENT_ENGINE_TYPE='dataproxy'
set
n
Hey @Fred The Doggy 👋 the best place to ask for support with Data Proxy issues is via the Intercom interface on the Data Platform. Nonetheless. I’m forwarding your request to the team so hopefully someone will be able to help you out 🙏
So, I just heard from the engineers that this error has only been seen to occur when the
PRISMA_CLIENT_ENGINE_TYPE='dataproxy'
env var has not been set properly. Since you mentioned you did set it, can you maybe double-check that it has indeed been set? If it’s still not working, we’d definitely want to look into this to help you resolve the issue 🙂