pankaj_it09 has asked for the wisdom of the Perl Monks concerning the following question:
use DBI; $user = "root"; $password = "rinrs123"; $hostnm = "localhost"; $port = "5432"; my $dbh = DBI->connect("dbi:Pg:dbname=postgres;host=$hostnm;port=$port +",$user,$password); my @databases = DBI->data_sources('Pg'); print "@databases";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting all the databases of a PostGreSQL database server.
by Corion (Patriarch) on Jan 06, 2009 at 12:51 UTC | |
| |
|
Re: Getting all the databases of a PostGreSQL database server.
by kyle (Abbot) on Jan 06, 2009 at 13:10 UTC | |
by pankaj_it09 (Scribe) on Jan 06, 2009 at 13:28 UTC |