rails/ruby database.yml

#开发模式

development:
  adapter: mysql2

  # 数据版本  
  database: zyt

 #数据库名
  host: localhost

 # 数据库主机名
  username: root

 # 数据库用户名
  password:
 #数据库密码

  pool: 5

  timeout: 5000

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
#测试模式

test:
  adapter: mysql2
  database: zyt
  host: 192.168.0.226
  username: root
  password:
  pool: 5
  timeout: 5000

 

#生产模式

production:
  adapter: mysql2
  database: zyt
  host: 192.168.0.226
  username: root
  password:
  pool: 5
  timeout: 5000

你可能感兴趣的:(Ruby,Rails,database.yml)