© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago•
6 replies
bentaihen

Unable to connect to Supabase DB

Hi, new to Supabase here. Just created a free account, organization and project, and created some public tables, but having issues/difficulty connecting to it via various means.

host: db.zxyvbjmatrsuvcyyniqi.supabase.co
port: 5432
database: postgres
user: postgres

python code:

import psycopg2

try:
conn = psycopg2.connect(
host="db.zxyvbjmatrsuvcyyniqi.supabase.co",
port="5432",
database="postgres",
user="postgres",
password="*"
)
print("Connection successful!")
conn.close()
except Exception as e:
print(f"Connection failed: {e}")


When I tried to connect via python/psycopg2 running on my local windows 10 machine with the above parameters, got this error - "Connection failed: could not translate host name "db.zxyvbjmatrsuvcyyniqi.supabase.co" to address: No such host is known."
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

unable to connect to free supabase db
SupabaseSSupabase / help-and-questions
5w ago
Unable to connect to Supabase
SupabaseSSupabase / help-and-questions
5mo ago
Unable to upgrade Supabase DB
SupabaseSSupabase / help-and-questions
5mo ago
Supabase auth "unable to connect"
SupabaseSSupabase / help-and-questions
3y ago