Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何让 rails/pg 在“/tmp/.s.PGSQL.5432”而不是“/var/pgsql_socket/.s.PGSQL.5432”中查找 psql 数据库
您需要将 socket 选项添加到您的 database.yml 文件中。
例子:
development: host: /tmp/.s.PGSQL.5432 adapter: postgresql username: root password: password database: my_app_development