Rails database.yml question when using Amazon RDS
How should my database.yml production look like when I am using Heroku and Amazon RDS?
My 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
see the Heroku docs for details of the Amazon RDS addon - here
View my walkthrough for solving this issue here: Heroku help deploying Rails app that uses Mysql database
精彩评论