`

Rails3开发环境postgresql连接配置

阅读更多
Rails版本:3.0.9
postgresql版本:8.4。
注:安装postgresql之前,首先要安装libpq-dev,再安装postgresql数据库管理系统
    使用pgadmin3,来进行数据库的管理

development:
  encoding: UTF-8
  adapter: postgresql
  username: postgres
  port: 5432
  host: localhost
  database: demo_development
  timeout: 5000
  password: ***

 
test:
  encoding: UTF-8
  adapter: postgresql
  username: postgres
  port: 5432
  host: localhost
  database: demo_test
  timeout: 5000
  password: ***

production:
  encoding: UTF-8
  adapter: postgresql
  username: postgres
  port: 5432
  host: localhost
  database: demo_production
  timeout: 5000
  password: ***
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics