server does not allow insecure connections, client must use SSL/TLS
I have been trying to setup planetscale database with drizzle in my next js application.
But I cant seem to form a conneciton with the database and push my generated schema up.
When I run the command
npx drizzle-kit push:mysql
I get this error
this is what my drizzle.config.ts
looks like
I have also tried using uri
instead of host user password and database but that doesn't work either with the ?sslaccept=strict
and other variations for it. Tried a bunch of solutions with this but nothing works. Other working repos online have older versions of drizzle-kit
and drizzle-orm
My versions are
Any help with this?
Appericiate you guys looking at this! many thanks2 Replies
I would recommend using the uri option and add the DATABASE_URL from the generated prisma in Planetscale, you also have to replace the ssl with
?ssl={"rejectUnauthorized":true}
Yeah sadly I tried that but didnt work but eventually just decided to manually add the tables