#P1001: Can't reach database server at `db.hjpdsbahfzphupirxxkv.supabase.co:5432`

3 messages · Page 1 of 1 (latest)

heavy rampartBOT
#

Skipping coffee for instant knowledge! Let's brew that AI answer now.

heavy rampartBOT
# heavy rampart Skipping coffee for instant knowledge! Let's brew that AI answer now.

The error P1001: Can't reach database server at db.hjpdsbahfzphupirxxkv.supabase.co:5432 means Prisma cannot connect to your Supabase PostgreSQL database. This is a common issue and can have several causes. Here are steps and checks based on real user experiences and official guidance:

  1. Check Credentials & Connection String

  2. Test Manual Connection

  3. Network Issues

  4. Supabase Pooler vs. Direct Connection

    • For migrations, use the direct connection string (db.<ref>.supabase.co:5432). For Prisma Client, use the pooler (aws-0-<region>.pooler.supabase.com:6543) Unable to reach database server at ....
  5. Timeouts

  6. Supabase Project Settings

heavy rampartBOT