Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » can I use 127.0.0.1 as host in open function?
can I use 127.0.0.1 as host in open function? [message #52523] Thu, 17 October 2019 03:05 Go to previous message
mtdew3q is currently offline  mtdew3q
Messages: 181
Registered: July 2010
Location: Upstate, NY (near Canada)
Experienced Member

Hi Postgres users,

Can I use 127.0.0.1 instead of localhost for my host?

if(!m_session.Open("host=127.0.0.1 dbname=test user=myuser password=mypassword"))


I can log into the db with
psql -h 127.0.0.1 -d test -U myuser

and then entering mypassword at the prompt.

Not sure why I can't seem to get it to run.

My environments are Cygwin PostgreSQL backend and the U++ libpq.a client code that Mirek has going on for the front end.

I don't think it matters if I connect to a Cygwin db running on that host even if Cygwin isn't using MinGW.

I probably can mix the client and server as different environments.

thnx,
roboloki

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Missing SessionClose() in Sqlite3Session::Close()
Next Topic: GetInsertedId does not work for all data types.
Goto Forum:
  


Current Time: Sun Apr 28 03:18:49 CEST 2024

Total time taken to generate the page: 0.03105 seconds