Re: MySQL --> PostgreSQL with PHP - Mailing list pgsql-novice

From Helgi Örn Helgason
Subject Re: MySQL --> PostgreSQL with PHP
Date
Msg-id AANLkTimbtBtTkiqQLXjVh76oer6Y1DghLu0Ab=HbhUT=@mail.gmail.com
Whole thread Raw
In response to Re: MySQL --> PostgreSQL with PHP  (Mark Kelly <pgsql@wastedtimes.net>)
List pgsql-novice
Thank's for your reply Mark, everything looks very good and I will
take a look at the links.

On 9 October 2010 00:47, Mark Kelly <pgsql@wastedtimes.net> wrote:
[snip]

> //============ START CODE ===================
> // Connect to the PostgreSQL server
> // Build a string to specify the connection parameters, NOT pass them as args.
> $connectionString = "host=$hostName dbname=$databaseName ".
>        "user=$username password=$password";
> if (!$connection = pg_connect($connectionString)) {
>        die("Cannot connect: ".pg_last_error());
> }
>
My problem this time is that the lines above consistently gives me
"Cannot connect:" and nothing else. I am quite sure I've managed to
exclude everything else from causing any errors. Could there be some
knot in these lines?

pgsql-novice by date:

Previous
From: e-letter
Date:
Subject: permissions failure to copy csv data
Next
From: Helgi Örn Helgason
Date:
Subject: Re: MySQL --> PostgreSQL with PHP