0
當你做rake db:migrate:up VERSION="
出現錯誤PG ::錯誤:無法連接到服務器:連接被拒絕
PG::Error: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5454?
的postgresql.conf
#listen_addresses = 'localhost' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost'; use '*' for all
# (change requires restart)
port = 5432 # (change requires restart)
在其他項目的遷移工作正常
gem 'pg' 0.14.1
postgresql 9.3
如何清除錯誤? 5454
端口在哪裏?
如果我在postgresql.conf
中更改端口可以脫離其他項目的遷移?
是端口5454的配置文件'配置/ database.yml'規定看? – Ctx