Postdresql

Tamilarasu P
Tamilarasu P used Ask the Experts™
on
Hi,

I found this command for solving the lock file "postmaster.pid" already exists in postgresql
You could stop your server doing :

pg_ctl -D /usr/local/var/postgres stop

Where did the command should be run?
I was tried to execute using run & command prompt not working.I have a error message please find the attachment file.
PostgreIssue.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Database Analyst
Commented:
you said "I was tried to execute using run & command prompt not working." but the error you posted is about the  “postmaster.pid” already exists so your server is already running and please post the actual error you're getting when running "pg_ctl -D /usr/local/var/postgres stop".

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial