Skip to content

Why is my database connection failing?

Updated 20 August 2026·1 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?