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?
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
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.
add a comment |
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
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.
add a comment |
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
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
python postgresql intellij
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
edited Jan 26 '16 at 20:51
answered Jan 26 '16 at 20:26
Alex PlouffAlex Plouff
112
112
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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