Can't use direct connection

When i use the pooler connection npx prisma db pull works fine but when i try to do npx prisma migrate dev i get Error: P3006

Migration 0_init failed to apply cleanly to the shadow database. Then I learned that i should use direct connection for migraitons and i added directURl in schema.prisma and in the env file but i get Error: P1001

Can't reach database server at db.znyjdqnxiypbaowydsgr.supabase.co:5432

Please make sure your database server is running at db.znyjdqnxiypbaowydsgr.supabase.co:5432. Please help me if you know what could cause the issue. Thanks.
Was this page helpful?