0
當我使用Heroku和Amazon RDS時,我的database.yml生產應該如何?使用Amazon RDS時Rails database.yml問題
我的database.yml
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
# gem 'mysql', '2.8.1'
development:
adapter: mysql
database: konkurranceportalen
encoding: utf8
pool: 5
username: root
password:
socket: C:/xampp/mysql/bin/mysqld.sock
host: 127.0.0.1
# 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: rails_t
encoding: utf8
pool: 5
username: root
password:
socket: C:/xampp/mysql/bin/mysqld.sock
host: 127.0.0.1
production:
adapter: mysql
database: rails_t
encoding: utf8
pool: 5
username: root
password:
socket: C:/xampp/mysql/bin/mysqld.sock
host: 127.0.0.1
我已閱讀指南。但是當我嘗試將MySql數據庫推送到Amazon RDS時,我得到這個錯誤http://stackoverflow.com/questions/5357486/heroku-help-amazon-rds-rails-push-database-error – 2011-03-19 12:32:17
是因爲我的生產數據庫是錯的? – 2011-03-19 12:33:14