由于将 OSX 升级到版本 10.7.3,当我尝试运行 Django“syncdb”命令时,我从 Postgresql 8.4.2 收到以下 psycopg2 错误:
psycopg2.OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
我能够毫无意外地打开 psql,但是当我尝试运行“pg_ctl status”时,我也收到了这个错误:
pg_ctl: could not open PID file "/Library/PostgreSQL/8.4/data/postmaster.pid": Permission denied
有相关性吗?