Socket File “/var/pgsql_socket/.s.PGSQL.5432” Missing In Mountain Lion (OS X Server)

后端 未结 20 2151
时光说笑
时光说笑 2020-12-12 09:48

I just upgraded my MacMini Server from Lion Server to Mountain Lion using OS X Server. I am having the same problem with PostgreSQL that I did last year when I first instal

20条回答
  •  悲哀的现实
    2020-12-12 10:20

    File permissions are restrictive on the Postgres db owned by the Mac OS. These permissions are reset after reboot, or restart of Postgres: e.g. serveradmin start postgres.

    So, temporarily reset the permissions or ownership:

    sudo chmod o+rwx /var/pgsql_socket/.s.PGSQL.5432
    sudo chown "webUser"  /var/pgsql_socket/.s.PGSQL.5432
    

    Permissions resetting is not secure, so install a version of the db that you own for a solution.

提交回复
热议问题