Error in Host name. Unable to connect to database!

boson-rbTRIAL

9 months ago

I followed all the necessary steps to connect to the postgresql database. But I always get the same error when I try to migrate - 'python manage.py migrate'.

I even tried to connect using pgAdmin - but I get error with host name. Says bad host name.

The below errors are displayed in the terminal along with other errors...

• psycopg2.OperationalError: could not translate host name "postgres.railway.internal" to address: No such host is known.

• django.db.utils.OperationalError: could not translate host name "postgres.railway.internal" to address: No such host is known.

Solved

1 Replies

boson-rbTRIAL

9 months ago

I was able to migrate. PGHOST always shows error. And in my effort to solve the issue, I encountered that a lot of users have been facing the issue. What worked for me is - Settings section provides the Public Networking option to connect with TCP using a proxied domain and port. This solved the issue for me!


Status changed to Solved brody 9 months ago