# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql -- --include=/usr/local/lib)
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
production:
adapter: mysql
database: api_production
username: obs
password: obspasswd
development:
adapter: mysql
database: api_development
username: root
password: opensuse
# 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: mysql
database: api_test
username: root
password: opensuse
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql -- --include=/usr/local/lib)
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
production:
adapter: mysql
database: api_production
username: obs
password: obspasswd
development:
adapter: mysql
database: api_development
username: root
password: opensuse
# 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: mysql
database: api_test
username: root
password: opensuse
本文详细介绍了在生产、开发及测试环境中配置MySQL数据库连接的方法,包括安装C语言绑定库、使用新式密码哈希以及数据库适配器的设置。
7881

被折叠的 条评论
为什么被折叠?



