Sunday, December 5, 2021

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

hey,
i am facing the same problem
can you please guide me on how to solve that issue ???

On Thursday, 16 May, 2019 at 6:38:01 pm UTC+5:30 randmw...@gmail.com wrote:
First, you should not share your password to your server to anyone….thats very dangerous.  Now anyone can log in to your server with nefarious intentions.  
Be more careful.

But it sounds like something on the server is blocking your connection.  

On May 16, 2019, at 8:57 AM, omar ahmed <omark...@gmail.com> wrote:

hii ..
i try to publish my first project on python anywhere but it still not working and this is my error :

could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

and this is my db settings  :

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'arena',
        'USER': 'arenadbuser',
        'PASSWORD': 'mlo9**@la',
        'HOST': 'localhost',
        'PORT': '',
    }
}

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/93204eb8-f5e3-43bf-98ff-b79478bce544%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7b66cbaf-e069-48db-ae46-8fea37c3644an%40googlegroups.com.

No comments:

Post a Comment