Guest User

Untitled

a guest
Jan 12th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. ## connect error
  2.  
  3. [root@amanda ~]# php connect.php
  4. PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "50.17.44.157", user "amandabackup", database "forums", SSL off in /root/connect.php on line 2
  5.  
  6.  
  7. ## connect script
  8. <?php
  9. $dbconn = pg_connect("host=50.17.228.94 port=5432 user=amandabackup dbname=forums password=secret");
  10. ?>
  11.  
  12.  
  13. ## pg_hba.conf
  14.  
  15.  
  16. host all amandabackup 50.17.44.157 md5
Add Comment
Please, Sign In to add comment