Jump to content

Recommended Posts

Posted

I have this error when I try to connect to the database from localhost again

pg_connect(): Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host
pg_connect("host=localhost user=ddanniel port=5432 dbname=ddanniel_uniway password=*****************")
A few days ago the site fell for several hours and the same problem that had reappeared, I hope you can help me

 

 

 

This is the page: http://uniway.helioh...gister_user.php

And the full error message:

<b>Warning</b>: pg_connect(): Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "::1", user "ddanniel", database "ddanniel_uniway", SSL off in<b>/home/ddanniel/public_html/php/functions.php</b> on line <b>19</b><br />

 

 

Posted

The error is still there, there is not conection with the database, you can see it here at the end:

 

view-source:http://uniway.heliohost.org/register_user.php

 

<b>Warning</b>: pg_connect(): Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "::1", user "deauvece", database "deauvece_uniway", SSL off in <b>/home/ddanniel/public_html/php/functions.php</b> on line <b>18</b><br />
Error conectando a la base de datos.
Posted

Oh, didn't know I was supposed to view source to see the error. I just expected it to display on the page.

 

  On 7/2/2017 at 3:12 PM, ddanniel said:

Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "::1", user "deauvece", database "deauvece_uniway", SSL off in /home/ddanniel/public_html/php/functions.php on line 18

Error conectando a la base de datos.

The problem is there is no user named deauvece. Your username is ddanniel.
  • Like 1
Posted

HAHAHAH i'm sorry man, i always forget to change that. In localhost i use that user but this is not gonna happen again, i'm gonna fix that right now.

 

Thanks!!!

Guest
This topic is now closed to further replies.
×
×
  • Create New...