![]() ![]() usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `postgresql_connection' usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `new' usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:329:in `initialize' usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1213:in `connect' usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1213:in `initialize' Now, after I reinstalled homebrew, when I use $ psql, it doesn't show any error message.īut I run rake db:migrate in my Rails app, it shows: could not connect to server: No such file or directoryĬonnections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? $ env ARCHFLAGS="-arch x86_64" gem install pgīuilding native extensions. $ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start $ launchctl load -w ~/Library/LaunchAgents/ $ cp /usr/local/Cellar/postgresql/9.2.1/ ~/Library/LaunchAgents/ With an argument other than "/usr/local/var/postgres". The directory "/usr/local/var/postgres" or run initdb If you want to create a new database system, either remove or empty Initdb: directory "/usr/local/var/postgres" exists but is not empty The default text search configuration will be set to "english". The database cluster will be initialized with locale "en_US.UTF-8". ![]() This user must also own the server process. ![]() The files belonging to this database system will be owned by user "laigary". usr/local/Cellar/postgresql/9.2.1: 2814 files, 38M, built in 2.7 minutes Uninstalling /usr/local/Cellar/postgresql/9.1.4.īash: /usr/local/bin/psql: No such file or directoryĪlready downloaded: /Library/Caches/Homebrew/postgresql-9.2.1.tar.bz2 Uninstalling /usr/local/Cellar/postgresql/9.2.1. Postgres version: psql (PostgreSQL) 9.2.1Īnd this is what I did: $ brew uninstall postgresql Is the server running locally and acceptingĬonnections on Unix domain socket "/tmp/.s.PGSQL.5432"? Psql: could not connect to server: No such file or directory (I also got this error message when I try to do rake db:migrate) $ psql I tried to uninstall postgres and install it again, but it didn't work as well. After I did brew update and brew upgrade, my postgres got some problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |