Skip to content

Why is my database connection failing?

Updated 5 September 2026·2 views

Database connection failing

Check your environment variables

Make sure all required variables are set with no typos.

Check network access

  • Supabase — allowlist your IP under Settings → Network
  • MongoDB Atlas — allowlist your IP under Network Access
  • PostgreSQL/MySQL — check firewall rules

Special characters in passwords

URL-encode special characters in connection strings. For example, @ becomes %40.

Was this article helpful?