Steps to create MYSQL database
Launch DB Instance
from the instance tabselect
buttonproduction
and click next step
mysql version, storage size, DB Instance Identifier, Master Username and Password
and click next step
Database Name
and click Launch DB Instance
Installing connectors
Add the MySQL database adapter to your project's gemfile,
gem 'mysql2'
Install your added gems,
bundle install
Some other database adapters are,
gem 'pg'
for PostgreSQLgem 'activerecord-oracle_enhanced-adapter'
for Oraclegem 'sql_server'
for SQL ServerConfigure your project's database.yml file Open your config/database.yml file
production:
adapter: mysql2
encoding: utf8
database: <%= RDS_DB_NAME %> # Which you have entered you creating database
username: <%= RDS_USERNAME %> # db master username
password: <%= RDS_PASSWORD %> # db master password
host: <%= RDS_HOSTNAME %> # db instance entrypoint
port: <%= RDS_PORT %> # db post. For MYSQL 3306