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 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 I'm pretty sure the postgrace is running at the very least: when I And I was also able to set my own Edit (with solution): Reference to this link: Actually there was a path problem, .bash_profile, and switch homebrew, using one of the 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 This allows open access to everyone, so it's OK to require your development server. Now it should work. 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"? 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). 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 pg gem just fine. I am trying to run just PostGrace all day, I appreciate any and all help! usr / local / bin / psql usr / bin / psql is. >.
sudo Chmod-r 777 / var / pgsql_socket /
Comments
Post a Comment