Thread: version:8.2.6 pg_hda.conf problem
Hi Everybody, I started running 8.2.6 recently on redhat 5.0 es, installed pgadmin3 and phppgadmin ,both them can correct connectby localhost,but can not from other , I had these in my pd_hda.conf : host all all 192.168.2.1/254 trust and listen_address=* in postgresql.conf, but it still not work . ps: I can not find tcpip_ ...in postgresql.conf. how can i do now ? ths a lot! leekooqi
To allow this ip address(192.168.2.1) to work without a password, you may want to try this instead:
host all all 192.168.2.1/32 trust
Robins Tharakan
On Fri, Feb 29, 2008 at 8:27 AM, 李国庆 <leekooqi@gmail.com> wrote:
Hi Everybody,
I started running 8.2.6 recently on redhat 5.0 es, installed pgadmin3 and phppgadmin ,both them can correct connect by localhost,but can not from other , I had these in my pd_hda.conf :
host all all 192.168.2.1/254 trust
and listen_address=* in postgresql.conf, but it still not work .
ps: I can not find tcpip_ ...in postgresql.conf.
how can i do now ?
ths a lot!
leekooqi
---------------------------(end of broadcast)---------------------------
TIP 1: 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
> I had these in my pd_hda.conf : > > host all all 192.168.2.1/254 trust > > and listen_address=* in postgresql.conf, but it still not work . > > ps: I can not find tcpip_ ...in postgresql.conf. > > how can i do now ? Have you started the Postmaster in 'interactive' mode? You need to pass the -i option to it. If you are using pg_ctl: pg_ctl -D /path/to/data/dir -o "-i" start THINK BEFORE YOU PRINT - Save paper if you don't really need to print this *******************Confidentiality and Privilege Notice******************* The material contained in this message is privileged and confidential to the addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to such person, you may not copy or deliver this message to anyone, and you should destroy it and kindly notify the sender by reply email. Information in this message that does not relate to the official business of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall not be liable for direct, indirect or consequential loss arising from transmission of this message or any attachments e-mail.
Hi, I suppose the CIDR-ADDRESS mask length needs more attention. You have specified it as 254 and you IP says it as a single host. Why cant you try with 32 as the mask length. Try replacing listen_address=* with listen_addresses=<hostname> in postgresql.conf FYI: http://www.postgresql.org/docs/8.0/interactive/client-authentication.html Try starting the server process ./postmaster -i -D datadir path & For instance, i have set it as host test test 192.16.1.1/32 trust Thanks, ViSolve DB Team ----- Original Message ----- From: "Phillip Smith" <phillip.smith@weatherbeeta.com.au> To: "'pgsql-admin'" <pgsql-admin@postgresql.org> Sent: Friday, February 29, 2008 10:18 AM Subject: Re: [ADMIN] version:8.2.6 pg_hda.conf problem >> I had these in my pd_hda.conf : >> >> host all all 192.168.2.1/254 trust >> >> and listen_address=* in postgresql.conf, but it still not work . >> >> ps: I can not find tcpip_ ...in postgresql.conf. >> >> how can i do now ? > > Have you started the Postmaster in 'interactive' mode? You need to pass > the > -i option to it. > > If you are using pg_ctl: > pg_ctl -D /path/to/data/dir -o "-i" start > > > THINK BEFORE YOU PRINT - Save paper if you don't really need to print this > > *******************Confidentiality and Privilege Notice******************* > > The material contained in this message is privileged and confidential to > the addressee. If you are not the addressee indicated in this message or > responsible for delivery of the message to such person, you may not copy > or deliver this message to anyone, and you should destroy it and kindly > notify the sender by reply email. > > Information in this message that does not relate to the official business > of Weatherbeeta must be treated as neither given nor endorsed by > Weatherbeeta. > Weatherbeeta, its employees, contractors or associates shall not be liable > for direct, indirect or consequential loss arising from transmission of > this > message or any attachments > e-mail. > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.21.1/1302 - Release Date: 2/27/2008 > 4:34 PM > >
Also, put listen_address ='*' instead of listen_address = * (Put the sigle quotes) If you opt for listen_address = '<hostname_ip', <hostname_ip> must be the IP address of the machine where your PostgreSQL server is running on. Hope u get sorted Makgati. -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of ??? Sent: Friday, February 29, 2008 4:57 AM To: pgsql-admin Subject: [ADMIN] version:8.2.6 pg_hda.conf problem Hi Everybody, I started running 8.2.6 recently on redhat 5.0 es, installed pgadmin3 and phppgadmin ,both them can correct connect by localhost,but can not from other , I had these in my pd_hda.conf : host all all 192.168.2.1/254 trust and listen_address=* in postgresql.conf, but it still not work . ps: I can not find tcpip_ ...in postgresql.conf. how can i do now ? ths a lot! leekooqi ---------------------------(end of broadcast)--------------------------- TIP 1: 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 To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: https://www.fnb.co.za/disclaimer.html If you are unable to access the Disclaimer, send a blank e-mail to firstrandbankdisclaimer@fnb.co.za and we will send you a copy of the Disclaimer.