© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo ago•
15 replies
диме арамија

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
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
db.znyjdqnxiypbaowydsgr.supabase.co:5432


Please make sure your database server is running at
db.znyjdqnxiypbaowydsgr.supabase.co:5432
db.znyjdqnxiypbaowydsgr.supabase.co:5432
. Please help me if you know what could cause the issue. Thanks.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Creating roles on supabase and use direct connection
SupabaseSSupabase / help-and-questions
3mo ago
Can't connect with direct connection "could not translate host name"
SupabaseSSupabase / help-and-questions
13mo ago
Connection type: Direct or Transaction pooler
SupabaseSSupabase / help-and-questions
7mo ago
Urgent Connection Timeout (Errno 10060) on Direct PostgreSQL Connection
SupabaseSSupabase / help-and-questions
2mo ago