Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给database.yml.exsample加上defaults? #35

Closed
Ival opened this issue Dec 25, 2012 · 2 comments
Closed

给database.yml.exsample加上defaults? #35

Ival opened this issue Dec 25, 2012 · 2 comments

Comments

@Ival
Copy link
Contributor

Ival commented Dec 25, 2012


defaults: &defaults
  adapter: postgresql
  encoding: unicode
  host: localhost
  pool: 5
  username: postgres
  password:

@saberma
Copy link
Member

saberma commented Dec 25, 2012

@Ival ok,你可以提交 PL

@saberma
Copy link
Member

saberma commented Dec 25, 2012

这个 改动,增加了 host 参数

host: localhost

使得连接 PostgreSQL 的方式从 Unix Domain Socket 变为 TCP 连接了。

考虑到 windows 平台下的用户用不了 Unix Domain Socket,还是不去掉 host 参数了,直接修改 PostgreSQL的权限控制吧。

修改 /etc/postgresql/9.1/main/pg_hba.conf 权限控制,本地 TCP 访问设置为完全信任

#host    all             all             127.0.0.1/32            md5
host    all             all             127.0.0.1/32            trust

记得重启 PostgreSQL

sudo service postgresql restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants