how come I get this error message when I try to connect to Postgresql

Ask a Question related to PostgreSQL / PGSQL, Design and Development.

  1. #1

    Default how come I get this error message when I try to connect to Postgresql

    Hello all,
    I am running Postgresql 8.0.0 on Windows 98. When I try to connect to the
    database with
    psql.exe using "psql.exe -h localhost -p 5432 template1 postgres" I get an
    error message like this:

    PSQL: could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host "localhost" and accepting
    TCP/IP connections on port 5432?

    Please help me out



    Dan

    __________________________________________________ _______________
    Is your PC infected? Get a FREE online computer virus scan from McAfee®
    Security. [url]http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963[/url]


    ---------------------------(end of broadcast)---------------------------
    TIP 4: Don't 'kill -9' the postmaster

    Danny Lu Guest

  2. Similar Questions and Discussions

    1. How to connect Coldfusion to PostgreSQL?
      Hello guys, I have PostgreSQL and Coldfusion MX 6.1 installed in a linux OS, so how can i connect then ? Thanks, Leandro
    2. connect to Postgresql
      I create Custom JDBC Connection and write Driver,URL,User Name,Password and when i press test there show information "null pointer".
    3. how to connect postgresql database
      hi, ===== Y.SUDHEER RAGHAV+919440521140 __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do?
    4. Error Message trying to connect to Access DB
      Just upgraded to WinXP Pro to get IIS (5.1) functionality on my home computer for testing my own web applications. Handles ASP just fine until it...
    5. Error - when trying to connect to postgresql
      When I try to connect to postresql with my php script below I got hhis eror: I can insert into the table from psql. Please help Thanks, ...
  3. #2

    Default Re: how come I get this error message when I try to connect

    Danny Lu wrote:
    > Hello all,
    > I am running Postgresql 8.0.0 on Windows 98. When I try to connect to
    > the database with
    > psql.exe using "psql.exe -h localhost -p 5432 template1 postgres" I get
    > an error message like this:
    >
    > PSQL: could not connect to server: Connection refused (0x0000274D/10061)
    > Is the server running on host "localhost" and accepting
    > TCP/IP connections on port 5432?
    I'm not sure PG is supposed to work on Windows 98, so take care.

    Having said that, there are three things to check:
    1. Is the backend process running?
    2. Does the logfile say anything interesting (connection failed etc)?
    3. If you open a console, "telnet localhost:5432" type "A" and hit
    return a couple of times do you get an error message back?

    --
    Richard Huxton
    Archonet Ltd

    ---------------------------(end of broadcast)---------------------------
    TIP 4: Don't 'kill -9' the postmaster

    Richard Huxton Guest

  4. #3

    Default Re: how come I get this error message when I try to connect to Postgresql

    Is the server running on host "localhost" and accepting TCP/IP
    connections on port 5432? What does your pg_hba.conf look like? Did
    you enable TCP/IP connections in postgresql.conf ?


    On Wed, 26 Jan 2005 10:04:35 -0500, Danny Lu <comtpig@hotmail.com> wrote:
    > Hello all,
    > I am running Postgresql 8.0.0 on Windows 98. When I try to connect to the
    > database with
    > psql.exe using "psql.exe -h localhost -p 5432 template1 postgres" I get an
    > error message like this:
    >
    > PSQL: could not connect to server: Connection refused (0x0000274D/10061)
    > Is the server running on host "localhost" and accepting
    > TCP/IP connections on port 5432?


    --
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
    L. Friedman [email]netllama@gmail.com[/email]
    LlamaLand [url]http://netllama.linux-sxs.org[/url]

    ---------------------------(end of broadcast)---------------------------
    TIP 3: if posting/reading through Usenet, please send an appropriate
    subscribe-nomail command to [email]majordomo@postgresql.org[/email] so that your
    message can get through to the mailing list cleanly

    Lonni J Friedman Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139