Re: PHP cann't access to postgres databse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<donghe@xxxxxxxxxxx> wrote: 
 
> Is the server running on host "localhost"
> and accepting TCP/IP connections on port 5432?
 
Is it?
 
Depending on your platform, you can check which ports are accepting
connections with something like:
 
netstat -plnt
 
If you don't see your port open there, listening on all addresses or
on the localhost IP, you probably need to modify your postgresql.conf
file to set listen_addresses or port as you need them.  (You will need
to restart PostgreSQL.)
 
If the postgresql.conf file is good, you must have something
misconfigured in the networking on that box.  You could run:
 
ping localhost
 
to see what that gives you.
 
-Kevin

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux