Mac OSX Lion Postgres does not accept connections on /tmp/.s.PGSQL.5432

前端 未结 6 1868
无人共我
无人共我 2021-02-06 04:23

I\'m getting a common Mac OSX error for Homebrew installations of Postgres,

No such file or directory
Is the server running locally and accepting
connections on          


        
6条回答
  •  独厮守ぢ
    2021-02-06 04:36

    The system client is being used and not your brew version. The symlink approach only lasts until the next restart. This approach fixes the root issue I believe

    1. sudo edit /etc/paths
    2. Move the line containing /usr/local/bin to the top of the file. (Before /usr/bin)
    3. Uninstall your postgres gem(s) (gem uninstall pg)
    4. Start up new shell to load the new environment settings
    5. bundle

提交回复
热议问题