ngpestelos (owner)

Revisions

gist: 186450 Download_button fork
public
Public Clone URL: git://gist.github.com/186450.git
Embed All Files: show embed
Setup MySQL DB for Rails #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
You want to switch databases from sqlite (default) to Rails.
 
1. Create the database
 
  $ mysql -u root create depot_development
 
2. Update config/database.yml
 
  development:
    adapter: mysql
    database: depot_development
    username: root
    password:
    host: localhost
 
Reference
 
  Agile Web Development with Rails, 3rd Edition