P
P
prokofevigor2015-09-04 12:00:11
PHP
prokofevigor, 2015-09-04 12:00:11

Through phppg it connects and through pdo it gives an error, what could be the problem?

I'm deploying a hosted site using php 5.3 and when I try to connect I get this error
SQLSTATE[08006] [7] could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP / IP connections on port 5432?"
Moreover, when I uploaded phppg to the server, it enters the database normally through it.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bogdan Odarchenko, 2015-09-04
@prokofevigor

Good afternoon.
Try to contact the address of the database through which you are authorized. Instead of localhos, write something like base.addresshostrea.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question