Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [will@freestuff ~]$ psql freedb
- Welcome to psql 8.1.21, the PostgreSQL interactive terminal.
- Type: \copyright for distribution terms
- \h for help with SQL commands
- \? for help with psql commands
- \g or terminate with semicolon to execute query
- \q to quit
- freedb=# \q
- [will@freestuff ~]$ cat test.php
- <?php
- $db = pg_connect( "host=localhost dbname=freedb user=will password=password" ) or die( "Could not connect" );
- ?>
- [will@freestuff ~]$ php test.php
- PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: Ident authentication failed for user "will" in /home/will/test.php on line 3
- Could not connect[will@freestuff ~]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement