Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## connect error
- [root@amanda ~]# php connect.php
- 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
- ## connect script
- <?php
- $dbconn = pg_connect("host=50.17.228.94 port=5432 user=amandabackup dbname=forums password=secret");
- ?>
- ## pg_hba.conf
- host all amandabackup 50.17.44.157 md5
Add Comment
Please, Sign In to add comment