# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: mysql
database: book
timeout: 5000
username: root
password: wang
# 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: book
timeout: 5000
username: root
password: wang
production:
adapter: mysql
database: book
timeout: 5000
username: root
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: mysql
database: book
timeout: 5000
username: root
password: wang
# 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: book
timeout: 5000
username: root
password: wang
production:
adapter: mysql
database: book
timeout: 5000
username: root
password: wang
数据库配置
ArgumentError)时参数和值之间有一个空格