Error: Either `connectionString` or `host, port, etc.` params be provided in config file
Hey,
So i'm trying to setup Drizzle with PlanetScale, and want to use the drizzle kit push command, but i run into this error:
Config
I'm using a connectionString that is formatted like this in my .env:
Everything i can google my way to, do it the same way, and i really can't seem to figure out what i'm doing wrong here?
Anyone that can point me in the right direction
9 Replies
I think you have to use the package
dotenv
and import it like this for the enviroment variables
Also make sure when using it the env file is named .env
and not something like .env.local
Thanks. It was in fact because of the
dotenv
package noget being used.I have this issue, without using env vars
can you show your config file? You can replace connection string with empty string
It was a documentation error. Docs show
db
but its database
https://orm.drizzle.team/kit-docs/conf#push-and-pull under connection params tab
Configuration files – DrizzleORM
Drizzle ORM | %s
thanks a lot!
fixing that
Thank you!
Should i just rewrite my schema in drizzle?