weird problem with pgadmin & postgres on debian
weird problem with pgadmin & postgres on debian
От:
"Alessandro @ GMail" <neurotrotter@gmail.com>
Дата:
hello there,
(it's the first time i use a mailing list...wow!)
So, here's my problem:
I've installed postgresql on debian as well as pgadmin(everything updated to last version).
Now, when i try to access my server on localhost with pgadmin, i cannot enter because it asks me the password. But i have no password, as it's just a first-time learning-purpose install! If i simply leave the password field empty, it rejects my login("Error connecting to the server: fe_sendauth: no password supplied"). But, if i try to access the server with 'psql testdatabase' from a terminal, i am able to enter, and work normally.
I've also installed postgresql & pgadmin on windows xp (database different from the linux one) and pgadmin acts normally, letting me login and managing databases without any problem.
What's wrong?
thx
Re: weird problem with pgadmin & postgres on debian
От:
"Alessandro @ GMail" <neurotrotter@gmail.com>
Дата:
ok, i fixed it by removing the postmaster daemon from init.d and starting postgres manually every time i need it, don't now why but it works, maybe it's a problem of user rights, but i'm too noob to know :P
----------------------------------------------------------------hello there,
(it's the first time i use a mailing list...wow!)
So, here's my problem:
I've installed postgresql on debian as well as pgadmin(everything updated to last version).
Now, when i try to access my server on localhost with pgadmin, i cannot enter because it asks me the password. But i have no password, as it's just a first-time learning-purpose install! If i simply leave the password field empty, it rejects my login("Error connecting to the server: fe_sendauth: no password supplied"). But, if i try to access the server with 'psql testdatabase' from a terminal, i am able to enter, and work normally.
I've also installed postgresql & pgadmin on windows xp (database different from the linux one) and pgadmin acts normally, letting me login and managing databases without any problem.
What's wrong?
thx
Re: weird problem with pgadmin & postgres on debian
От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
Are you sure you're starting the same installation/cluster? Manually/init shouldn't make any difference if so. Regards, Dave -----Original Message----- From: "Alessandro @ GMail" Sent: 18/03/06 13:12:01 To: "pgadmin-support@postgresql.org" Subject: Re: [pgadmin-support] weird problem with pgadmin & postgres on debian ok, i fixed it by removing the postmaster daemon from init.d and starting postgres manually every time i need it, don't now why but it works, maybe it's a problem of user rights, but i'm too noob to know :P ---------------------------------------------------------------- hello there, (it's the first time i use a mailing list...wow!)So, here's my problem: I've installed postgresql on debian as well as pgadmin(everything updated to last version).Now, when i try to access my server on localhost with pgadmin, i cannot enter because it asks me the password. But i have no password, as it's just a first-time learning-purpose install! If i simply leave the password field empty, it rejects my login( "Error connecting to the server: fe_sendauth: no password supplied"). But, if i try to access the server with 'psql testdatabase' from a terminal, i am able to enter, and work normally.I've also installed postgresql & pgadmin on windows xp (database different from the linux one) and pgadmin acts normally, letting me login and managing databases without any problem.What's wrong?thx -----Unmodified Original Message----- ok, i fixed it by removing the postmaster daemon from init.d and starting postgres manually every time i need it, don't now why but it works, maybe it's a problem of user rights, but i'm too noob to know :P ---------------------------------------------------------------- hello there, (it's the first time i use a mailing list...wow!)So, here's my problem: I've installed postgresql on debian as well as pgadmin(everything updated to last version).Now, when i try to access my server on localhost with pgadmin, i cannot enter because it asks me the password. But i have no password, as it's just a first-time learning-purpose install! If i simply leave the password field empty, it rejects my login( "Error connecting to the server: fe_sendauth: no password supplied"). But, if i try to access the server with 'psql testdatabase' from a terminal, i am able to enter, and work normally.I've also installed postgresql & pgadmin on windows xp (database different from the linux one) and pgadmin acts normally, letting me login and managing databases without any problem.What's wrong?thx
Re: weird problem with pgadmin & postgres on debian
От:
"Alessandro @ GMail" <neurotrotter@gmail.com>
Дата:
mmm i think you're right and it's not the same installation as i have not defined the PGDATA environment variable yet, so i don't know what he started at boot time...(i run the db with the -D option right now)
another thing i forgot to say is that the first time i put the data folder in my user home(/home/alex/.postgres/data) instead of /usr/local/pgsql/data/ ...but user postgres should be a SU so it shouldn't make any difference, or am i wrong?
then i changed the folder to /usr/local/pgsql/data/ but pgadmin refused still to connect. Only after i slaughtered /etc/init.d/postgresql-8.1 i was able to connect with pgadmin...
thx
Alessandro
Dave Page wrote:Are you sure you're starting the same installation/cluster? Manually/init shouldn't make any difference if so. Regards, Dave -----Original Message----- From: "Alessandro @ GMail"<neurotrotter@gmail.com> Sent: 18/03/06 13:12:01 To: "pgadmin-support@postgresql.org"<pgadmin-support@postgresql.org> Subject: Re: [pgadmin-support] weird problem with pgadmin & postgres on debian ok, i fixed it by removing the postmaster daemon from init.d and starting postgres manually every time i need it, don't now why but it works, maybe it's a problem of user rights, but i'm too noob to know :P ---------------------------------------------------------------- hello there, (it's the first time i use a mailing list...wow!)So, here's my problem: I've installed postgresql on debian as well as pgadmin(everything updated to last version).Now, when i try to access my server on localhost with pgadmin, i cannot enter because it asks me the password. But i have no password, as it's just a first-time learning-purpose install! If i simply leave the password field empty, it rejects my login( "Error connecting to the server: fe_sendauth: no password supplied"). But, if i try to access the server with 'psql testdatabase' from a terminal, i am able to enter, and work normally.I've also installed postgresql & pgadmin on windows xp (database different from the linux one) and pgadmin acts normally, letting me login and managing databases without any problem.What's wrong?thx -----Unmodified Original Message----- ok, i fixed it by removing the postmaster daemon from init.d and starting postgres manually every time i need it, don't now why but it works, maybe it's a problem of user rights, but i'm too noob to know :P ---------------------------------------------------------------- hello there, (it's the first time i use a mailing list...wow!)So, here's my problem: I've installed postgresql on debian as well as pgadmin(everything updated to last version).Now, when i try to access my server on localhost with pgadmin, i cannot enter because it asks me the password. But i have no password, as it's just a first-time learning-purpose install! If i simply leave the password field empty, it rejects my login( "Error connecting to the server: fe_sendauth: no password supplied"). But, if i try to access the server with 'psql testdatabase' from a terminal, i am able to enter, and work normally.I've also installed postgresql & pgadmin on windows xp (database different from the linux one) and pgadmin acts normally, letting me login and managing databases without any problem.What's wrong?thx
Re: weird problem with pgadmin & postgres on debian
От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
From: pgadmin-support-owner@postgresql.org [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of Alessandro @ GMail
Sent: 18 March 2006 17:26
To: pgadmin-support@postgresql.org
Subject: Re: [pgadmin-support] weird problem with pgadmin & postgres on debianmmm i think you're right and it's not the same installation as i have not defined the PGDATA environment variable yet, so i don't know what he started at boot time...(i run the db with the -D option right now)
another thing i forgot to say is that the first time i put the data folder in my user home(/home/alex/.postgres/data) instead of /usr/local/pgsql/data/ ...but user postgres should be a SU so it shouldn't make any difference, or am i wrong?
then i changed the folder to /usr/local/pgsql/data/ but pgadmin refused still to connect. Only after i slaughtered /etc/init.d/postgresql-8.1 i was able to connect with pgadmin...
Sounds like you are in a proper mess of defaults, command line options and envvars!! I'd hunt down all clusters (maybe, find / -name postgresql.conf), figure out which one you want to start, and then make sure that you either start it with the -D option, or by explicitly setting $PGDATA first. Don't rely on su to preserve the environment or anything like that as you're bound to run into trouble as soon as you type 'su - postgres' instead of 'su postgres' without thinking.
Regards, Dave