Unable to connect to postgresql database after upgrading to Yosemite 10.10

不问归期 提交于 2019-12-03 01:09:23

You are better off using the easy method by installing the http://postgresapp.com/ app! I too had this same issue with 10.9.4. Also with 10.10.

brew install postgres will give issues when doing any OS X upgrades so avoid it. So install the app then:

Add this to your profile if the install do not work out of the box. For me I never had to add the below in my profile:

export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"

This line must be at the top of your profile:

export PATH=/usr/local/bin:$PATH

Good luck!

I found this.

cd /usr/local/var/postgres
mkdir pg_tblspc pg_twophase pg_stat_tmp

It worked for me.

Checking the server.log will show you what directories it's looking for. Adding them to your postgres directory should fix this. (Was going to comment above, but don't have enough reputation)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!