Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support (Russian)
  3. Не удается соединиться с базой postgres под windows.

Не удается соединиться с базой postgres под windows.

Scheduled Pinned Locked Moved Support (Russian)
10 Posts 4 Posters 36.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    Retter
    wrote on last edited by
    #1

    Решил посмотреть, что такое NetXMS.
    И сразу возникла проблема при установке.
    ОС Windows XP Professional.
    Есть postgresql 8.1, запущенная на localhost.
    при установке NetXMS выдает ошибку (цитата из логов):
    [27-Nov-2007 22:07:30] Database driver "pgsql.ddr" loaded and initialized successfully
    [27-Nov-2007 22:07:55] Unable to establish connection with database
    Поддержку postgresql установил. Имя пользователя и пароль прописал верно.
    В чем еще может быть проблема?

    1 Reply Last reply
    0
    • W
      W
      weec
      wrote on last edited by
      #2

      есть, что в логах postgresql-сервера?
      нет ли у других приложений проблем с доступом к postgresql-серверу?
      возможно стоит отключить штатный firewall

      1 Reply Last reply
      0
      • R
        R
        Retter
        wrote on last edited by
        #3

        В логах postgresql пишет следующее:

        2007-11-30 15:59:37 FATAL:  no pg_hba.conf entry for host "::1", user "postgres", database "template1", SSL off

        Если честно, не совсем представляю, что это значит.
        postgres - это у меня суперпользователь. База template1 не знаю вообще откуда. Я указываю netxms_db.
        в файле pg_hba.conf  одна строчка по сути:

        # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
        # IPv4 local connections:
        host    all         all         127.0.0.1/32          md5
        

        Файрвол выключил. Не помогло.

        Локальный сайт на php под apache нормально работает со своей базой в postgresql.

        1 Reply Last reply
        0
        • W
          W
          weec
          wrote on last edited by
          #4

          netxmsd на этой же машине?

          1 Reply Last reply
          0
          • R
            R
            Retter
            wrote on last edited by
            #5

            Да. Все полностью на localhost.

            1 Reply Last reply
            0
            • W
              W
              weec
              wrote on last edited by
              #6

              а базу netxms_db c данными создали?

              1 Reply Last reply
              0
              • A
                A
                Alex Kirhenshtein
                wrote on last edited by
                #7

                @retter said in Не удается соединиться с базой postgres под windows.:

                2007-11-30 15:59:37 FATAL:  no pg_hba.conf entry for host "::1", user "postgres", database "template1", SSL off

                Это значит, что пытались подключится на localhost по IPv6, юзером postgres на базу template1.

                Покажите netxmsd.conf, пожалуйста.

                1 Reply Last reply
                0
                • R
                  R
                  Retter
                  wrote on last edited by
                  #8

                  netxmsd.conf:

                  LogFile = i:\Мои документы\netxms.log
                  DBDriver = pgsql.ddr
                  DBServer = localhost
                  DBName = netxms_db
                  DBLogin = postgres
                  DBPassword = 1234
                  LogFailedSQLQueries = yes
                  

                  Если выбираю создать новую базу с именем netxms_db, то в логах postgresql пишет:

                  2007-12-01 18:41:11 FATAL:  no pg_hba.conf entry for host "::1", user "postgres", database "template1", SSL off
                  

                  Если создаю пустую базу с таким же именем вручную и указываю использовать существующую базу, то в логах пишет:

                  2007-12-01 18:44:13 FATAL:  no pg_hba.conf entry for host "::1", user "postgres", database "netxms_db", SSL off
                  
                  1 Reply Last reply
                  0
                  • V
                    V
                    Victor Kirhenshtein
                    wrote on last edited by
                    #9

                    Pohoze chto localhost po umolchaniju resolvitsja v IPv6 address ::1. Poprobujte localhost zamenit' na 127.0.0.1

                    1 Reply Last reply
                    0
                    • R
                      R
                      Retter
                      wrote on last edited by
                      #10

                      Сработало. Спасибо. 🙂
                      Указал вместо localhost - 127.0.0.1
                      Все подключилось, установилось и настроилось успешно.

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      Powered by NodeBB Contributors
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups