Translations of this page?:

Discussion

Tilmann Singer, 2010/07/08 12:00

Wrong socket directory?

Sometimes there is a mismatch in actual socket directory and where the adapter thinks it is, then you'll see an error like this:

could not connect to server: No such file or directory

Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

In that case explicitely set the socket directory in database.yml like this:

development:
  adapter: postgresql
  host: /tmp
  ...
 
database-support/postgres.txt · Last modified: 2011/02/15 22:49 by skim
 
Recent changes RSS feed Creative Commons License