postgresql - PostqreSQL in Rails: How do I make the server run locally AND accept connections on the Unix domain socket? -


Then I'm a newbie for the rail which only uses the first SQLite3, and I also run a simple rake command I'm struggling for when using PostgreSQL.

I am just trying to follow the first 5 minutes of this screencast while setting up Postgrad:

But whenever I gave directions, even when I ran rake db: create: all I get a universal error message:

  Could not connect to the server: Permission is denied Whether the server is running locally and unix Accepts connections on domain socket "/var/pgsql_socket/.s.PGSQL.5432"?   

I see it everywhere, but did anyone surely answer it, once and for all (if such a task was very easy)?

I posted Homebrew to PostgreSQL

When I run which runs psql , it says that I am using one of the usr / bin / psql Which I believe is the origin of Mac OSX Lion (is not it a bad thing?) How can I switch to any one installed by the Homebrew, which can be found in the usr / local / bin / psql Is in).

I'm pretty sure the postgrace is running at the very least: when I ps auxw | Grep postgres run , I get my four processes, such as:

  Postgrej: statistics collector process postgrad: autovoke launcher process postgrad: wall author process postgrasser: author process   

And I was also able to set my own pg gem just fine. I am trying to run just PostGrace all day, I appreciate any and all help!

Edit (with solution):

Reference to this link:

Actually there was a path problem, .bash_profile, and switch homebrew, using one of the usr / local / bin / psql usr / bin / psql is. >.

After that, I uninstalled my PG Mani, and then reinstalled it, and then make the DR: Make: All started working. :)

Edit 2:

Actually, I still have problems! It's so disappointing! :)

Your permission may have been compromised

  sudo Chmod-r 777 / var / pgsql_socket /   

This allows open access to everyone, so it's OK to require your development server.

Now it should work.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -