Advertisement
Guest User

Untitled

a guest
Jun 9th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. [will@freestuff ~]$ psql freedb
  2. Welcome to psql 8.1.21, the PostgreSQL interactive terminal.
  3.  
  4. Type: \copyright for distribution terms
  5. \h for help with SQL commands
  6. \? for help with psql commands
  7. \g or terminate with semicolon to execute query
  8. \q to quit
  9.  
  10. freedb=# \q
  11. [will@freestuff ~]$ cat test.php
  12. <?php
  13.  
  14. $db = pg_connect( "host=localhost dbname=freedb user=will password=password" ) or die( "Could not connect" );
  15.  
  16. ?>
  17. [will@freestuff ~]$ php test.php
  18. 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
  19. Could not connect[will@freestuff ~]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement