Received: from iteso.mx (iteso.mx [148.201.1.4]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1JHZFx90513 for ; Mon, 19 Feb 2001 12:35:16 -0500 (EST) (envelope-from alfonso@iteso.mx) Received: from iteso.mx (alfonso@[148.201.112.30]) by iteso.mx (8.11.1/8.11.1) with ESMTP id f1JHZ5726281 for ; Mon, 19 Feb 2001 11:35:05 -0600 (CST) (envelope-from alfonso@iteso.mx) Message-ID: <3A915940.557A5098@iteso.mx> Date: Mon, 19 Feb 2001 11:34:57 -0600 From: Alfonso Peniche Organization: Iteso University X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: References: <001701c09896$0aacd870$380aa8c0@202.54.1.18> Content-Type: multipart/alternative; boundary="------------60642B36AE360943D80D785F" X-Archive-Number: 200102/107 X-Sequence-Number: 181 --------------60642B36AE360943D80D785F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Check the following list of steps and see if you have followed all of them. This should work What you have to do is: For every database you have in PostgreSQL you have to: 1.- Select ODBC Data Sources in the Control Panel 2.- Select the User DSN tab 3.- Click on 'Add...' 4.- Choose the ODBC Driver corresponding to PostgreSQL and click on 'Finish'. 5.- A Setup window will appear with the following: Data Source: Type the name you will identify your driver with (could be the name of your database) Description: (Optional) Anything that will make you remember what the database or connection is Database: Type your database's name (where you are going to connect). Server: Type your server name (where Postgres is installed) Port: If you use default values, leave 5432 as is, otherwiase type the Postgres Port you are using. Username: Type the name you will use to make the connection Password: Type the user's password NOTE 1: Remember, in order for this to work you have to have a Postgres username and password (since you don't need a user for unix, I would suggest, for security reasons, that you take advantage of this feature). NOTE 2: You have to modify your pg_hba.conf file so the connection privilege is 'password' (no quotes). Also make sure you have the connection privileges to the database from the machine you want to make the connection. I haven't been able to make it work with 'crypt'. I don't know if it's a bug or if it's meant to be that way or if it's just me (maybe someone from the ODBC area could help us out here, since I haven't tried the new version for the ODBC driver) 6.- In the Options (Advanced) section (still in the Setup window) click on 'DataSources' 6.1.- A new window will appear. Make sure that the only boxes checked are Show Columns and Fake Index in the OID Options Section. If I didn't forget anything, this should work. Hope this helps. (If you have any question don't hesitate to ask). Mustafa Attari wrote: > Hi, I have installed PgAdmin-7.0.5 and MDAC 2.6 RTM (2.60.6526.3) (not > SDK) on my Windows-NT client,and PostgreSQL-7.0.3 on Red Hat Linux > Server 6.2, BUT the moment I execute PgAdmin, I get thefollowing > error, > "-2147467259 Could not connect to the > server Could not connect to the remote > Socket" Myself and my colleague have tried all the possibilities but > couldn't succeed, I hereby request yourkindself to guide me in solving > the above problem. ThanksMustafa Attari --------------60642B36AE360943D80D785F Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Check the following list of steps and see if you have followed all of them. This should work

What you have to do is:

For every database you have in PostgreSQL you have to:

1.- Select ODBC Data Sources in the Control Panel
2.- Select the User DSN tab
3.- Click on 'Add...'
4.- Choose the ODBC Driver corresponding to PostgreSQL and click on
'Finish'.
5.- A Setup window will appear with the following:
            Data Source: Type the name you will identify your driver
with (could be the name of your database)
            Description: (Optional) Anything that will make you remember
what the database or connection is
            Database: Type your database's name (where you are going to
connect).
            Server: Type your server name (where Postgres is installed)
            Port: If you use default values, leave 5432 as is,
otherwiase type the Postgres Port you are using.
            Username: Type the name you will use to make the connection
            Password: Type the user's password
            NOTE 1: Remember, in order for this to work you have to have
a Postgres username and password (since you don't need a user for unix, I
would suggest, for security reasons, that you take advantage of this
feature).
            NOTE 2: You have to modify your pg_hba.conf file so the
connection privilege is 'password' (no quotes). Also make sure you
have the connection privileges to the database from the machine you want
to make the connection.

            I haven't been able to make it work with 'crypt'. I don't
know if it's a bug or if it's meant to be that way or if it's just me
(maybe someone from the ODBC area could help us out here, since I haven't
tried the new version for the ODBC driver)

6.- In the Options (Advanced) section (still in the Setup window) click
on 'DataSources'
    6.1.- A new window will appear. Make sure that the only boxes
checked are Show Columns and Fake Index in the OID Options Section.

If I didn't forget anything, this should work.

Hope this helps. (If you have any question don't hesitate to ask).
 

Mustafa Attari wrote:

Hi, I have installed PgAdmin-7.0.5 and MDAC 2.6 RTM (2.60.6526.3) (not SDK) on my Windows-NT client,and PostgreSQL-7.0.3 on Red Hat Linux Server 6.2, BUT the moment I execute PgAdmin, I get thefollowing error,                              "-2147467259                            Could not connect to the server                             Could not connect to the remote Socket" Myself and my colleague have tried all the possibilities but couldn't succeed, I hereby request yourkindself to guide me in solving the above problem. ThanksMustafa Attari 
--------------60642B36AE360943D80D785F--