pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedconnecting OBDC
7+ messages / 2 participants
[nested] [flat]
* connecting OBDC
@ 2002-10-01 01:17 valcauda Stéphane <valcauda.aderis@wanadoo.fr>
0 siblings, 0 replies; 7+ messages in thread
From: valcauda Stéphane @ 2002-10-01 01:17 UTC (permalink / raw)
To: pgsql-odbc
Hi,
My Postgres database works
But I have problem to connect with ODBC.
I have created a DSN in ODBC administrator Panel
but I don't know what to put in "server" in the ODBC set up window.
I try to search on the FAQ, documentation,etc ... but I found nothing about
that.
Thanks, Stéphane
^ permalink raw reply [nested|flat] 7+ messages in thread
* [NOVICE] Re: connecting OBDC
@ 2002-10-01 08:51 valcauda Stéphane <valcauda.aderis@wanadoo.fr>
0 siblings, 0 replies; 7+ messages in thread
From: valcauda Stéphane @ 2002-10-01 08:51 UTC (permalink / raw)
To: pgsql-odbc
thanks for you answers.
I have already had a look on the list's archive but found nothing.
I don't have system administrator, my network is very little (3 computers)
but while I will use
PostGres whith my student I make test on my own network before.
I put the IP adress of my computer (which is the server) but it still
doesn't work.do it
for me if the server is correct, I can see 2 problems :
1/ the database name. The help says that we should give the path of the
database. With Postgres I have the
classic usr\share\postgresql\data and my database is called TEST but I don't
see TEST directory or file. And I don't
know if I should put the NT path (with CYGWIN root before) or the cygwin
path usr/share/...
2/ The users password. I've got problem with the login command. I can
connect on my account but I can"t change user
with login. I tried mkPasswd, put "" password. But it doesn't work.
thanks for help
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: [NOVICE] Re: connecting OBDC
@ 2002-10-01 10:42 valcauda Stéphane <valcauda.aderis@wanadoo.fr>
0 siblings, 0 replies; 7+ messages in thread
From: valcauda Stéphane @ 2002-10-01 10:42 UTC (permalink / raw)
To: Marc Birkett <MBirkett@emc-ltd.co.uk>; +Cc: pgsql-odbc
I don't understand your "to logon" part.
Sorry :)
In ODBC I have Server name, DSN Name and Database Name
For my knowledge why 127.0.0.1 ?
I don't have this IP.
thanks.
----- Original Message -----
From: "Marc Birkett" <MBirkett@emc-ltd.co.uk>
To: <valcauda.aderis@wanadoo.fr>
Sent: Tuesday, October 01, 2002 12:29 PM
Subject: [NOVICE] Re: [ODBC] connecting OBDC
try "127.0.0.1" as the IP address and
to logon > psql template1 postgres.
these are the default values, could you keep the thread in your replies as i
normally delete e-mails regularly.....
>>> valcauda Stéphane <valcauda.aderis@wanadoo.fr> 10/01/02 09:51am >>>
thanks for you answers.
I have already had a look on the list's archive but found nothing.
I don't have system administrator, my network is very little (3 computers)
but while I will use
PostGres whith my student I make test on my own network before.
I put the IP adress of my computer (which is the server) but it still
doesn't work.do it
for me if the server is correct, I can see 2 problems :
1/ the database name. The help says that we should give the path of the
database. With Postgres I have the
classic usr\share\postgresql\data and my database is called TEST but I don't
see TEST directory or file. And I don't
know if I should put the NT path (with CYGWIN root before) or the cygwin
path usr/share/...
2/ The users password. I've got problem with the login command. I can
connect on my account but I can"t change user
with login. I tried mkPasswd, put "" password. But it doesn't work.
thanks for help
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
----------------------------------------------------------------------------
The information transmitted is intended only for the person(s) or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient(s) is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Fw: [NOVICE] Re: connecting OBDC
@ 2002-10-01 11:23 valcauda Stéphane <valcauda.aderis@wanadoo.fr>
0 siblings, 0 replies; 7+ messages in thread
From: valcauda Stéphane @ 2002-10-01 11:23 UTC (permalink / raw)
To: pgsql-odbc
> yes.
> it's ok i can see postgres in the ODBC administrator panel
> there is 3 drivers PostgreSQL, PostgresSQL+(beta), PostgresSQL+(unicode).
> I have choosed the first one.
> after I put
>
> DATASOURCE : POSTGRES
> DATABASE : ?? I tried TEST (the database I have created), template1 ,
> c:\cygwin\usr\share\postgreSQL\data
> SERVER : 127.0.0.1
> user NAME : postgres
> Port : 5432 (default)
> Password : (void)
>
> everytime same error :
> SQL general error
> couldn't connect to the server
> couldn't connect to remove socket.
> ALIAS : POSTGRES.
>
> while I can make SQL queries without problems under cygwin.
>
> ----- Original Message -----
> From: "Marc Birkett" <MBirkett@emc-ltd.co.uk>
> To: <valcauda.aderis@wanadoo.fr>
> Sent: Tuesday, October 01, 2002 12:52 PM
> Subject: Re: [NOVICE] Re: [ODBC] connecting OBDC
>
>
> have you downloaded to postgresql drivers?
>
> >>> valcauda Stéphane <valcauda.aderis@wanadoo.fr> 10/01/02 11:57am >>>
> Ok for 127.0.0.1. I didn't know that.
> but, while I like to understand things :), I try the ping on 127.0.0.1,
but
> it doesn't work (problem of delay).
> Anyway, I can connect to postgresql under cygwin without problem with
> psql -U postgres template1.
> It works.
> I don't understand why I have to put template1 while I made a CREATE
> DATABASE TEST , but I will find
> in the doc later (It's probably like under ACCESS o ORACLE with database
> workspaces).
>
> My problem is with ODBC.
> I would like to connect under C++ Builder. I need ODBC connection.
> It doesn't work.
> ODBC Manager ask me for DSN, DatabaseName and Server Name, but I don't
> succeed in connecting.
>
> The database name under ODBC should be template1 ?
>
> be novice is quite hard :) when you come from other environnement that you
> were mastering without problem.
>
> thanks.
>
> ----- Original Message -----
> From: "Marc Birkett" <MBirkett@emc-ltd.co.uk>
> To: <valcauda.aderis@wanadoo.fr>
> Sent: Tuesday, October 01, 2002 12:37 PM
> Subject: Re: [NOVICE] Re: [ODBC] connecting OBDC
>
>
> 127.0.0.1 is the IP address of your computer, whatever the actual IP
address
> is. If you open a dos prompt and ping 127.0.0.1 you ping your own
computer.
>
> The default to log-in to postgresql is:
>
> psql template1 postgres where:
>
> psql = client
> template1 = default database.
> postgres = default user.
>
> once logged in like this you can set-up a super user using CREATE USER
name
> CREATEUSER.
>
> >>> valcauda Stéphane <valcauda.aderis@wanadoo.fr> 10/01/02 11:42am >>>
> I don't understand your "to logon" part.
> Sorry :)
> In ODBC I have Server name, DSN Name and Database Name
>
> For my knowledge why 127.0.0.1 ?
> I don't have this IP.
>
> thanks.
>
> ----- Original Message -----
> From: "Marc Birkett" <MBirkett@emc-ltd.co.uk>
> To: <valcauda.aderis@wanadoo.fr>
> Sent: Tuesday, October 01, 2002 12:29 PM
> Subject: [NOVICE] Re: [ODBC] connecting OBDC
>
>
> try "127.0.0.1" as the IP address and
>
> to logon > psql template1 postgres.
>
> these are the default values, could you keep the thread in your replies as
i
> normally delete e-mails regularly.....
>
> >>> valcauda Stéphane <valcauda.aderis@wanadoo.fr> 10/01/02 09:51am >>>
> thanks for you answers.
>
> I have already had a look on the list's archive but found nothing.
> I don't have system administrator, my network is very little (3 computers)
> but while I will use
> PostGres whith my student I make test on my own network before.
>
> I put the IP adress of my computer (which is the server) but it still
> doesn't work.do it
> for me if the server is correct, I can see 2 problems :
> 1/ the database name. The help says that we should give the path of the
> database. With Postgres I have the
> classic usr\share\postgresql\data and my database is called TEST but I
don't
> see TEST directory or file. And I don't
> know if I should put the NT path (with CYGWIN root before) or the cygwin
> path usr/share/...
>
> 2/ The users password. I've got problem with the login command. I can
> connect on my account but I can"t change user
> with login. I tried mkPasswd, put "" password. But it doesn't work.
>
> thanks for help
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
> --------------------------------------------------------------------------
--
> The information transmitted is intended only for the person(s) or entity
to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient(s) is prohibited. If you
received
> this in error, please contact the sender and delete the material from any
> computer.
>
>
>
>
>
>
> --------------------------------------------------------------------------
--
> The information transmitted is intended only for the person(s) or entity
to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient(s) is prohibited. If you
received
> this in error, please contact the sender and delete the material from any
> computer.
>
>
>
>
>
> --------------------------------------------------------------------------
--
> The information transmitted is intended only for the person(s) or entity
to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient(s) is prohibited. If you
received
> this in error, please contact the sender and delete the material from any
> computer.
>
>
>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: [NOVICE] Re: connecting OBDC
@ 2002-10-01 11:40 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 1 reply; 7+ messages in thread
From: Dave Page @ 2002-10-01 11:40 UTC (permalink / raw)
To: valcauda Stéphane <valcauda.aderis@wanadoo.fr>; pgsql-odbc
> -----Original Message-----
> From: valcauda Stéphane [mailto:valcauda.aderis@wanadoo.fr]
> Sent: 01 October 2002 12:24
> To: PostgreSQL Mailing List
> Subject: Fw: [NOVICE] Re: [ODBC] connecting OBDC
>
>
> > yes.
> > it's ok i can see postgres in the ODBC administrator panel
> there is 3
> > drivers PostgreSQL, PostgresSQL+(beta),
> PostgresSQL+(unicode). I have
> > choosed the first one. after I put
> >
> > DATASOURCE : POSTGRES
> > DATABASE : ?? I tried TEST (the database I have created),
> template1 ,
> > c:\cygwin\usr\share\postgreSQL\data
> > SERVER : 127.0.0.1
> > user NAME : postgres
> > Port : 5432 (default)
> > Password : (void)
> >
> > everytime same error :
> > SQL general error
> > couldn't connect to the server
> > couldn't connect to remove socket.
> > ALIAS : POSTGRES.
> >
> > while I can make SQL queries without problems under cygwin.
>
Make sure you started the postmaster with the -i option or tcp/ip enabled in postgresql.conf.
Regards, Dave.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: [NOVICE] Re: connecting OBDC
@ 2002-10-01 12:44 valcauda Stéphane <valcauda.aderis@wanadoo.fr>
parent: Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 7+ messages in thread
From: valcauda Stéphane @ 2002-10-01 12:44 UTC (permalink / raw)
To: Dave Page <dpage@vale-housing.co.uk>; pgsql-odbc
No, It wasn't -i with postmaster and TCP/IP socket was by default (so
False).
It makes me think of another thing.
All is on my personnal computer : Windows 2000 workstation and CYGWIN.
I had made the default CYGWIN installation.
But does Windows 2000 ODBC drivers can communicate with CYGWIN postgreSQL
session with TCP/IP.
Should I install something else to make W2000 / CYGWIN be compatible under
IP ?
>>Make sure you started the postmaster with the -i option or tcp/ip enabled
in postgresql.conf.
>>Regards, Dave.
>
> > yes.
> > it's ok i can see postgres in the ODBC administrator panel
> there is 3
> > drivers PostgreSQL, PostgresSQL+(beta),
> PostgresSQL+(unicode). I have
> > choosed the first one. after I put
> >
> > DATASOURCE : POSTGRES
> > DATABASE : ?? I tried TEST (the database I have created),
> template1 ,
> > c:\cygwin\usr\share\postgreSQL\data
> > SERVER : 127.0.0.1
> > user NAME : postgres
> > Port : 5432 (default)
> > Password : (void)
> >
> > everytime same error :
> > SQL general error
> > couldn't connect to the server
> > couldn't connect to remove socket.
> > ALIAS : POSTGRES.
> >
> > while I can make SQL queries without problems under cygwin.
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: [NOVICE] Re: connecting OBDC
@ 2002-10-01 12:45 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 7+ messages in thread
From: Dave Page @ 2002-10-01 12:45 UTC (permalink / raw)
To: valcauda Stéphane <valcauda.aderis@wanadoo.fr>; pgsql-odbc
> -----Original Message-----
> From: valcauda Stéphane [mailto:valcauda.aderis@wanadoo.fr]
> Sent: 01 October 2002 13:45
> To: Dave Page; PostgreSQL Mailing List
> Subject: Re: [NOVICE] Re: [ODBC] connecting OBDC
>
>
> No, It wasn't -i with postmaster and TCP/IP socket was by
> default (so False). It makes me think of another thing.
>
> All is on my personnal computer : Windows 2000 workstation
> and CYGWIN. I had made the default CYGWIN installation. But
> does Windows 2000 ODBC drivers can communicate with CYGWIN
> postgreSQL session with TCP/IP. Should I install something
> else to make W2000 / CYGWIN be compatible under IP ?
No, that should work fine. Here's a checklist:
1) Start the postmaster with -i or tcpip_socket=true in $PGDATA/postgresql.conf
2) Make sure there in an entry in $PGDATA/pg_hba.conf that will allow you access eg.
host all all 127.0.0.1 255.255.255.255 password
3) Make sure tcp/ip is installed on your workstation (pretty hard not to these days).
4) Setup a system DSN for testing:
Server: 127.0.0.1
Database: template1
All other options can be left at their defaults for testing.
Regards, Dave.
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2002-10-01 12:45 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-01 01:17 connecting OBDC valcauda Stéphane <valcauda.aderis@wanadoo.fr>
2002-10-01 08:51 [NOVICE] Re: connecting OBDC valcauda Stéphane <valcauda.aderis@wanadoo.fr>
2002-10-01 10:42 Re: [NOVICE] Re: connecting OBDC valcauda Stéphane <valcauda.aderis@wanadoo.fr>
2002-10-01 11:23 Fw: [NOVICE] Re: connecting OBDC valcauda Stéphane <valcauda.aderis@wanadoo.fr>
2002-10-01 11:40 Re: [NOVICE] Re: connecting OBDC Dave Page <dpage@vale-housing.co.uk>
2002-10-01 12:44 ` valcauda Stéphane <valcauda.aderis@wanadoo.fr>
2002-10-01 12:45 Re: [NOVICE] Re: connecting OBDC Dave Page <dpage@vale-housing.co.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox