Re: Shell Script for Vacuum

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

 



On Fri, Nov 21, 2014 at 4:23 PM, rajivmehta0201 <rajivmehta0201@xxxxxxxxx> wrote:
Hi,

I am running this script but it giving error.

vacuumdb: could not connect to database postgres: could not connect to
server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

Can you please help me on this?

Check Postgres Server running or not ?   
If running, check on which port its running  ?

Accordingly edit the script and place below environment variables, then call the script.

PGUSER=postgres
PGPORT=5432        ## Give the port on which your server running

---
Regards,
Raghavendra
EnterpriseDB Corporation


[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