I need to connect to the postgres server from a remote machine with a Perl script. If I were on a local machine I would use something like this for the first part of the connection string: 'DBI:Pg:dbname=name' Can someone give me and example of what the connection string would look like from a remote machine? Thanks, Bob
On Mon, 23 Apr 2001, Bob Whitehouse wrote:
> I need to connect to the postgres server from a remote machine with a Perl
> script. If I were on a local machine I would use something like this for the
> first part of the connection string: 'DBI:Pg:dbname=name'
>
> Can someone give me and example of what the connection string would look
> like from a remote machine?
`man DBD::Pg`
shows
$dbh =
DBI->connect("dbi:Pg:dbname=$dbname;host=$host;port=$port;options=$options
;tty=$tty", "$username", "$password");
as an example.
Does this work?
--
Joel Burton <jburton@scw.org>
Director of Information Systems, Support Center of Washington
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера