niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » PostgreSQL
pgadmin3 / postgresql newbie question
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
Jonathan Schreiter
*nix forums beginner


Joined: 02 Mar 2005
Posts: 3

PostPosted: Wed Mar 02, 2005 11:15 am    Post subject: pgadmin3 / postgresql newbie question Reply with quote

hi all,
running amd64 fedora core 3 w/ default postgresql
7.4.7-3. did asu - , su postgres and createdb mydb as
explained in the postgresql tutorial. installed the
latest pgadmin3 and am trying to connect to this
database. as i wasn't sure what the FC3 default
password was for postgres, i changed it to something i
could remember.

i can't seem to connect to the new database using
pgadmin3. i have the correct IP address of the local
computer, default port 5432, mydb as the initaldb,
postgres as the username, and my new password as the
password. i keep getting the error

Error connecting to the server: could not connect to
server: Connection refused
Is the server running on host "192.168.1.24" and
accepting
TCP/IP connections on port 5432?

i also verified the postgresql service is running, and
that i've added the following to
/etc/raddb/postgresql.conf:
login = "postgres"
password = "mynewpassword"

and right underneath it:
tcpip = true

i've also disabled my local firewall and SELINUX just
for kicks. and yes, i did a reboot.

so...anyone know what else i can look at?

many thanks!
jonathan



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
Back to top
Sean Davis
*nix forums Guru Wannabe


Joined: 01 Mar 2005
Posts: 172

PostPosted: Wed Mar 02, 2005 11:15 am    Post subject: Re: pgadmin3 / postgresql newbie question Reply with quote

Did you start the postmaster using '-i' to allow tcp/ip connections?

Sean

On Mar 2, 2005, at 6:15 AM, Jonathan Schreiter wrote:

Quote:
hi all,
running amd64 fedora core 3 w/ default postgresql
7.4.7-3. did asu - , su postgres and createdb mydb as
explained in the postgresql tutorial. installed the
latest pgadmin3 and am trying to connect to this
database. as i wasn't sure what the FC3 default
password was for postgres, i changed it to something i
could remember.

i can't seem to connect to the new database using
pgadmin3. i have the correct IP address of the local
computer, default port 5432, mydb as the initaldb,
postgres as the username, and my new password as the
password. i keep getting the error

Error connecting to the server: could not connect to
server: Connection refused
Is the server running on host "192.168.1.24" and
accepting
TCP/IP connections on port 5432?

i also verified the postgresql service is running, and
that i've added the following to
/etc/raddb/postgresql.conf:
login = "postgres"
password = "mynewpassword"

and right underneath it:
tcpip = true

i've also disabled my local firewall and SELINUX just
for kicks. and yes, i did a reboot.

so...anyone know what else i can look at?

many thanks!
jonathan



---------------------------(end of
broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to
majordomo@postgresql.org)


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Back to top
Sim Zacks
*nix forums addict


Joined: 02 Mar 2005
Posts: 97

PostPosted: Wed Mar 02, 2005 11:15 am    Post subject: Re: pgadmin3 / postgresql newbie question Reply with quote

Did you set up the pg_hba.conf file with the proper security rights?

"Jonathan Schreiter" <jonathanschreiter@yahoo.com> wrote in message
news:20050302111535.65731.qmail@web20121.mail.yahoo.com...
Quote:
hi all,
running amd64 fedora core 3 w/ default postgresql
7.4.7-3. did asu - , su postgres and createdb mydb as
explained in the postgresql tutorial. installed the
latest pgadmin3 and am trying to connect to this
database. as i wasn't sure what the FC3 default
password was for postgres, i changed it to something i
could remember.

i can't seem to connect to the new database using
pgadmin3. i have the correct IP address of the local
computer, default port 5432, mydb as the initaldb,
postgres as the username, and my new password as the
password. i keep getting the error

Error connecting to the server: could not connect to
server: Connection refused
Is the server running on host "192.168.1.24" and
accepting
TCP/IP connections on port 5432?




---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
Back to top
Marco Colombo
*nix forums addict


Joined: 01 Mar 2005
Posts: 51

PostPosted: Wed Mar 02, 2005 11:51 am    Post subject: Re: pgadmin3 / postgresql newbie question Reply with quote

On Wed, 2 Mar 2005, Jonathan Schreiter wrote:

Quote:
hi all,
running amd64 fedora core 3 w/ default postgresql
7.4.7-3. did asu - , su postgres and createdb mydb as
explained in the postgresql tutorial. installed the
latest pgadmin3 and am trying to connect to this
database. as i wasn't sure what the FC3 default
password was for postgres, i changed it to something i
could remember.

i can't seem to connect to the new database using
pgadmin3. i have the correct IP address of the local
computer, default port 5432, mydb as the initaldb,
postgres as the username, and my new password as the
password. i keep getting the error

Error connecting to the server: could not connect to
server: Connection refused
Is the server running on host "192.168.1.24" and
accepting
TCP/IP connections on port 5432?

i also verified the postgresql service is running, and
that i've added the following to
/etc/raddb/postgresql.conf:

This file is part of the freeradius package, and despite the name,
has nothing to do with your PostgreSQL configuration.

The default path for the real PostgreSQL configuration file is:
/var/lib/pgsql/data/postgresql.conf

I don't know if running TCP/IP is a requirement for pgadmin3, but
if you need to access the _local_ PostgreSQL server, most clients
would do w/o configuring TCP/IP support at all.

Quote:
login = "postgres"
password = "mynewpassword"

and right underneath it:
tcpip = true

These do not belong to PostgreSQL server configurarion. It's RADIUS stuff.

Quote:
i've also disabled my local firewall and SELINUX just
for kicks. and yes, i did a reboot.

so...anyone know what else i can look at?

1) make sure postgresql is running (use ps - look for a postmaster process)

2) if it's not there, run following command as root:

service postgresql start

3) if you want it to run automatically at boot, and it doesn't, run
the following command as root:

chkconfig postgresql on

this won't start the process if it's not running. It just sets a flag
for the next boot.

4) i don't get what you mean for changing postgres password. To switch
to the postgres user, I usually switch to root first, and then to postgres.
Root can switch to any user w/o password. Actually, it's good security
practice not to assign any password to system pseudo-accounts ("postgres"
is one of them) and leave them locked. If you need a different access
method, I strongly suggest to look at the PostgreSQL way to authenticate
users and stop using the 'ident' method (see pg_hba.conf), which forces
you to run clients with a certain Unix user id.

5) try and access to the db with the psql client first. Use the same
connection method you're using with pgadmin3, and run it under the same
user you run pgadmin3 with. E.g.:

psql -h localhost -p 5432 -U postgres mydb

see psql manual for details.


If you successfully get to 5), it's likely it's a pgadmin3 problem.

..TM.
--
____/ ____/ /
/ / / Marco Colombo
___/ ___ / / Technical Manager
/ / / ESI s.r.l.
_____/ _____/ _/ Colombo@ESI.it

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Back to top
Greg Patnude
*nix forums beginner


Joined: 01 Mar 2005
Posts: 44

PostPosted: Wed Mar 02, 2005 3:53 pm    Post subject: Re: pgadmin3 / postgresql newbie question Reply with quote

That particular error message is typically associated with a missing
pg_hba.conf entry that tells the postgreSQL server which remote machines to
allow connections FROM....

# If you want to allow non-local connections, you need to add more
# "host" records. Also, remember TCP/IP connections are only enabled
# if you enable "tcpip_socket" in postgresql.conf.

# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD

local all all trust
# IPv4-style local connections:
host all all 127.0.0.1 255.255.255.255 trust
# IPv6-style local connections:
host all all ::1
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust
host all all 10.1.10.23 255.255.255.255 trust


Regards....

"Jonathan Schreiter" <jonathanschreiter@yahoo.com> wrote in message
news:20050302111535.65731.qmail@web20121.mail.yahoo.com...
Quote:
hi all,
running amd64 fedora core 3 w/ default postgresql
7.4.7-3. did asu - , su postgres and createdb mydb as
explained in the postgresql tutorial. installed the
latest pgadmin3 and am trying to connect to this
database. as i wasn't sure what the FC3 default
password was for postgres, i changed it to something i
could remember.

i can't seem to connect to the new database using
pgadmin3. i have the correct IP address of the local
computer, default port 5432, mydb as the initaldb,
postgres as the username, and my new password as the
password. i keep getting the error

Error connecting to the server: could not connect to
server: Connection refused
Is the server running on host "192.168.1.24" and
accepting
TCP/IP connections on port 5432?

i also verified the postgresql service is running, and
that i've added the following to
/etc/raddb/postgresql.conf:
login = "postgres"
password = "mynewpassword"

and right underneath it:
tcpip = true

i've also disabled my local firewall and SELINUX just
for kicks. and yes, i did a reboot.

so...anyone know what else i can look at?

many thanks!
jonathan



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
Back to top
Edward Macnaghten
*nix forums beginner


Joined: 02 Mar 2005
Posts: 4

PostPosted: Wed Mar 02, 2005 6:01 pm    Post subject: Re: pgadmin3 / postgresql newbie question Reply with quote

pgadmin3 does not seem to want to connect to the server using UNIX
sockets, it only does it through TCP.

Set up the Postgres server to use TCP (as well as UNIX sockets) - i.e. -
starting postmaster with the -i option, sorting it pg_hba.conf etc.

Eddy

Jonathan Schreiter wrote:
Quote:
hi all,
running amd64 fedora core 3 w/ default postgresql
7.4.7-3. did asu - , su postgres and createdb mydb as
explained in the postgresql tutorial. installed the
latest pgadmin3 and am trying to connect to this
database. as i wasn't sure what the FC3 default
password was for postgres, i changed it to something i
could remember.

i can't seem to connect to the new database using
pgadmin3. i have the correct IP address of the local
computer, default port 5432, mydb as the initaldb,
postgres as the username, and my new password as the
password. i keep getting the error

Error connecting to the server: could not connect to
server: Connection refused
Is the server running on host "192.168.1.24" and
accepting
TCP/IP connections on port 5432?

i also verified the postgresql service is running, and
that i've added the following to
/etc/raddb/postgresql.conf:
login = "postgres"
password = "mynewpassword"

and right underneath it:
tcpip = true

i've also disabled my local firewall and SELINUX just
for kicks. and yes, i did a reboot.

so...anyone know what else i can look at?

many thanks!
jonathan



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
Back to top
Guy Rouillier
*nix forums addict


Joined: 02 Mar 2005
Posts: 73

PostPosted: Wed Mar 02, 2005 9:42 pm    Post subject: Re: pgadmin3 / postgresql newbie question Reply with quote

Jonathan Schreiter wrote:
Quote:
i can't seem to connect to the new database using
pgadmin3. i have the correct IP address of the local
computer, default port 5432, mydb as the initaldb,
postgres as the username, and my new password as the
password. i keep getting the error

Error connecting to the server: could not connect to
server: Connection refused
Is the server running on host "192.168.1.24" and
accepting
TCP/IP connections on port 5432?

Make sure to include the above address (or most likely the hostname
equivalent) to your list of listen_addresses in postgresql.conf.

--
Guy Rouillier


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

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 2:35 am | All times are GMT
navigation Forum index » Databases » PostgreSQL
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Newbie question: How to forward a domain to a mailbox? leei Postfix 0 Fri Aug 24, 2007 4:55 pm
No new posts configuration question for httpd Karl Wang Apache 1 Fri Jul 21, 2006 2:10 pm
No new posts nim problem/question Ron AIX 0 Fri Jul 21, 2006 1:57 pm
No new posts question for JAVA developer who r using postgres sql as b... deepak pal PostgreSQL 1 Fri Jul 21, 2006 9:00 am
No new posts Encryption Question dtuttle1@gmail.com Berkeley DB 2 Thu Jul 20, 2006 10:09 pm

Mobile Phones | Advertising | MPAA | Debt Consolidation | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2467s ][ Queries: 16 (0.1354s) ][ GZIP on - Debug on ]