r
rushi chowdary

Posted on 27th June 2022|44 views

0
votes

Is The Server Running Locally And Accepting

What if the server runs locally and accepts connections on unix domain socket "/tmp/.s.PGSQL.5432"?

Answers
P
Harish Harsh

Posted on 27th June 2022

This kind of error happens when PostgreSQL server does not run due to force shut down because if you delete a postmaster. Pid without crosschecking if any process is running this could permanently corrupt your database.

And if this happens then you can use the procedure:

  1. Uninstall the PostgreSQL using Brew
  2. Remove all the PostgreSQL folders
  3. Then again reinstall the PostgreSQL using Brew
  4. start server using the command

Brew services start PostgreSQL

Now you can create your database.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos