按照截屏http://railscasts.com/episodes/342-migrating-to-postgresql?autoplay=true 高達的步驟「耙分貝:創建:所有」,並得到錯誤:Rails的:耙分貝:創建:所有(無法連接到服務器)
could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
參考關於Rails: rake db:create:all fails to connect to PostgreSQL database
的問題,但仍然無法解決它。不知道是什麼問題。
[database.yml中]
development:
adapter: postgresql
encoding: unicode
database: store_development
pool: 5
username: amysukumunu
password:
test:
adapter: postgresql
encoding: unicode
database: store_test
pool: 5
username: amysukumunu
password:
是我的取景器沒有文件 「postgresql.conf中」。 0items。 template1的含義是什麼?它是我的應用程序名稱? –
template1是postgressql上的默認數據庫,但它看起來像mac上的不同(無postgresql.conf?),因此請嘗試按照更新後的故障排除說明進行操作。 – CuriousMind
這就是說沒有「org.postgresql.postgres.plist」在第二個命令 –