Jump to content

porting postgresql and connection issue


nltrade

Recommended Posts

Hi folks, so I am making *some* progress porting my postgresql database to heliohost.  

 

The import process complains about some settings - my local postgresql server is running version 13.2 while heliohost is running 9.2 or 9.3.    As far as I can tell it did not inhibit the importation process ... 

 

Now I am trying to connect to the database via:

 

$connection = pg_connect("dbname=nltrade_hockey1 user=nltrade_rh host=https://nltradingcards.heliohost.us/");

 

in my php file.    This all works locally and here I have changed the dbname, user, and host.  The message complains:

 

Warning: pg_connect(): Unable to connect to PostgreSQL server: could not translate host name "https://nltradingcards.heliohost.us/" to address:

 

 

What am I missing? 

 

Best,

R Haynes

Link to comment
Share on other sites

Hi folks, so I am making *some* progress porting my postgresql database to heliohost.  

 

The import process complains about some settings - my local postgresql server is running version 13.2 while heliohost is running 9.2 or 9.3.    As far as I can tell it did not inhibit the importation process ... 

 

Now I am trying to connect to the database via:

 

$connection = pg_connect("dbname=nltrade_hockey1 user=nltrade_rh host=https://nltradingcards.heliohost.us/");

 

in my php file.    This all works locally and here I have changed the dbname, user, and host.  The message complains:

 

Warning: pg_connect(): Unable to connect to PostgreSQL server: could not translate host name "https://nltradingcards.heliohost.us/" to address:

 

 

What am I missing? 

 

Best,

R Haynes

 

Hi folks, just an update - so the pg_connect command did not like the https:// in front of nltradingcards.heliohost.us, and then I needed to add the password.  So moving forward!  Thanks for all your previous assistance!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...