Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?

前端 未结 17 1580
北荒
北荒 2020-12-02 06:37

Before anything, please note that I have found several similar questions on Stack Overflow and articles all over the web, but none of those helped me fix my issue:

17条回答
  •  伪装坚强ぢ
    2020-12-02 07:35

    I resolved the issue via this command

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

    At times, you might get this error

    pg_ctl: another server might be running; trying to start server anyway
    

    So, try running the following command and then run the first command given above.

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

提交回复
热议问题