Postgres pg_hba.conf Configuration The Next CEO of Stack OverflowHow do I upgrade to Postgres 9.2?How to make psql to default to localhost?Postgres doesn't have hstore extensionfailed to uninstall postgres-xchow to nicely stop all postgres processesUninstalled Postgres but still staus shows outputremove other postgres database serversCan't apply Postgres configuration update after setting up custom data directoryIs the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?how to create a postgres on NFS?

Inappropriate reference requests from Journal reviewers

Fastest way to shutdown Ubuntu Mate 18.10

Is it my responsibility to learn a new technology in my own time my employer wants to implement?

The King's new dress

Why do professional authors make "consistency" mistakes? And how to avoid them?

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

Rotate a column

How to get regions to plot as graphics

How to make a software documentation "officially" citable?

How can I quit an app using Terminal?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Does the Brexit deal have to be agreed by both Houses?

Science fiction (dystopian) short story set after WWIII

Text adventure game code

What is meant by a M next to a roman numeral?

Why is there a PLL in CPU?

How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?

What's the point of interval inversion?

How do spells that require an ability check vs. the caster's spell save DC work?

Anatomically Correct Mesopelagic Aves

Visit to the USA with ESTA approved before trip to Iran

How to safely derail a train during transit?

Trouble understanding the speech of overseas colleagues

Why here is plural "We went to the movies last night."



Postgres pg_hba.conf Configuration



The Next CEO of Stack OverflowHow do I upgrade to Postgres 9.2?How to make psql to default to localhost?Postgres doesn't have hstore extensionfailed to uninstall postgres-xchow to nicely stop all postgres processesUninstalled Postgres but still staus shows outputremove other postgres database serversCan't apply Postgres configuration update after setting up custom data directoryIs the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?how to create a postgres on NFS?










0















I'm trying to develop a python application using Postgres. Unfortunately everytime I do a



db.session.commit()


I get this as an error:



OperationalError: (OperationalError) fe_sendauth: no password supplied None None


After playing around with the pg_hba.config file I still get the same error. The respective file is currently as follows:



# Database administrative login by Unix domain socket
local all postgres peer
local all alex trust

# TYPE DATABASE USER ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres peer
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5


Would somebody be so kind as to help me with the right configuration for this file running on Ubuntu 14.04?










share|improve this question














bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    0















    I'm trying to develop a python application using Postgres. Unfortunately everytime I do a



    db.session.commit()


    I get this as an error:



    OperationalError: (OperationalError) fe_sendauth: no password supplied None None


    After playing around with the pg_hba.config file I still get the same error. The respective file is currently as follows:



    # Database administrative login by Unix domain socket
    local all postgres peer
    local all alex trust

    # TYPE DATABASE USER ADDRESS METHOD

    # "local" is for Unix domain socket connections only
    local all all trust
    # IPv4 local connections:
    host all all 127.0.0.1/32 trust
    # IPv6 local connections:
    host all all ::1/128 trust
    # Allow replication connections from localhost, by a user with the
    # replication privilege.
    #local replication postgres peer
    #host replication postgres 127.0.0.1/32 md5
    #host replication postgres ::1/128 md5


    Would somebody be so kind as to help me with the right configuration for this file running on Ubuntu 14.04?










    share|improve this question














    bumped to the homepage by Community 10 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      0












      0








      0








      I'm trying to develop a python application using Postgres. Unfortunately everytime I do a



      db.session.commit()


      I get this as an error:



      OperationalError: (OperationalError) fe_sendauth: no password supplied None None


      After playing around with the pg_hba.config file I still get the same error. The respective file is currently as follows:



      # Database administrative login by Unix domain socket
      local all postgres peer
      local all alex trust

      # TYPE DATABASE USER ADDRESS METHOD

      # "local" is for Unix domain socket connections only
      local all all trust
      # IPv4 local connections:
      host all all 127.0.0.1/32 trust
      # IPv6 local connections:
      host all all ::1/128 trust
      # Allow replication connections from localhost, by a user with the
      # replication privilege.
      #local replication postgres peer
      #host replication postgres 127.0.0.1/32 md5
      #host replication postgres ::1/128 md5


      Would somebody be so kind as to help me with the right configuration for this file running on Ubuntu 14.04?










      share|improve this question














      I'm trying to develop a python application using Postgres. Unfortunately everytime I do a



      db.session.commit()


      I get this as an error:



      OperationalError: (OperationalError) fe_sendauth: no password supplied None None


      After playing around with the pg_hba.config file I still get the same error. The respective file is currently as follows:



      # Database administrative login by Unix domain socket
      local all postgres peer
      local all alex trust

      # TYPE DATABASE USER ADDRESS METHOD

      # "local" is for Unix domain socket connections only
      local all all trust
      # IPv4 local connections:
      host all all 127.0.0.1/32 trust
      # IPv6 local connections:
      host all all ::1/128 trust
      # Allow replication connections from localhost, by a user with the
      # replication privilege.
      #local replication postgres peer
      #host replication postgres 127.0.0.1/32 md5
      #host replication postgres ::1/128 md5


      Would somebody be so kind as to help me with the right configuration for this file running on Ubuntu 14.04?







      python postgresql intellij






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 26 '16 at 20:05









      Alex PlouffAlex Plouff

      112




      112





      bumped to the homepage by Community 10 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 10 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Pretty nice walk-through.....
          https://help.ubuntu.com/community/PostgreSQL



          First find the file pg_hba.config. Usually found here:



           /etc/postgresql/9.3/main/pg_hba.conf


          OR



           /etc/postgresql/[VERSION]/main/pg_hba.conf


          Find this commented-out line:



          # Database administrative login by Unix domain socket


          And Underneath Change '???' to md5:



          local all postgres probably 'peer'


          To:



          local all postgres md5


          This is because Ubuntu uses md5 with postgres instead of peer authentication



          Then run this command:



          sudo /etc/init.d/postgresql reload





          share|improve this answer

























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f725985%2fpostgres-pg-hba-conf-configuration%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Pretty nice walk-through.....
            https://help.ubuntu.com/community/PostgreSQL



            First find the file pg_hba.config. Usually found here:



             /etc/postgresql/9.3/main/pg_hba.conf


            OR



             /etc/postgresql/[VERSION]/main/pg_hba.conf


            Find this commented-out line:



            # Database administrative login by Unix domain socket


            And Underneath Change '???' to md5:



            local all postgres probably 'peer'


            To:



            local all postgres md5


            This is because Ubuntu uses md5 with postgres instead of peer authentication



            Then run this command:



            sudo /etc/init.d/postgresql reload





            share|improve this answer





























              0














              Pretty nice walk-through.....
              https://help.ubuntu.com/community/PostgreSQL



              First find the file pg_hba.config. Usually found here:



               /etc/postgresql/9.3/main/pg_hba.conf


              OR



               /etc/postgresql/[VERSION]/main/pg_hba.conf


              Find this commented-out line:



              # Database administrative login by Unix domain socket


              And Underneath Change '???' to md5:



              local all postgres probably 'peer'


              To:



              local all postgres md5


              This is because Ubuntu uses md5 with postgres instead of peer authentication



              Then run this command:



              sudo /etc/init.d/postgresql reload





              share|improve this answer



























                0












                0








                0







                Pretty nice walk-through.....
                https://help.ubuntu.com/community/PostgreSQL



                First find the file pg_hba.config. Usually found here:



                 /etc/postgresql/9.3/main/pg_hba.conf


                OR



                 /etc/postgresql/[VERSION]/main/pg_hba.conf


                Find this commented-out line:



                # Database administrative login by Unix domain socket


                And Underneath Change '???' to md5:



                local all postgres probably 'peer'


                To:



                local all postgres md5


                This is because Ubuntu uses md5 with postgres instead of peer authentication



                Then run this command:



                sudo /etc/init.d/postgresql reload





                share|improve this answer















                Pretty nice walk-through.....
                https://help.ubuntu.com/community/PostgreSQL



                First find the file pg_hba.config. Usually found here:



                 /etc/postgresql/9.3/main/pg_hba.conf


                OR



                 /etc/postgresql/[VERSION]/main/pg_hba.conf


                Find this commented-out line:



                # Database administrative login by Unix domain socket


                And Underneath Change '???' to md5:



                local all postgres probably 'peer'


                To:



                local all postgres md5


                This is because Ubuntu uses md5 with postgres instead of peer authentication



                Then run this command:



                sudo /etc/init.d/postgresql reload






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 26 '16 at 20:51

























                answered Jan 26 '16 at 20:26









                Alex PlouffAlex Plouff

                112




                112



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f725985%2fpostgres-pg-hba-conf-configuration%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                    Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                    Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»