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.
「/var/pgsql_socket/.s.PGSQL.5432」ではなく「/tmp/.s.PGSQL.5432」で、rails/pg が psql データベースを検索するようにするにはどうすればよいですか
database.ymlファイルにソケットオプションを追加する必要があります。
例:
development: host: /tmp/.s.PGSQL.5432 adapter: postgresql username: root password: password database: my_app_development