Last active
January 20, 2017 23:08
-
-
Save talha08/48178f3baecc4133474ca2c8a748ddfb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Command line: | |
| gem install mysql2 | |
| rake db:schema:dump //generate db/schema.rb | |
| rake db:create //create database | |
| rake db:schema:load // load schema | |
| rake db:migrate //migrate | |
| rake db:seed //seed | |
| config/database.yml should | |
| #============================== | |
| development: | |
| adapter: mysql2 | |
| database: rails_blog | |
| username: root | |
| password: ****** | |
| host: localhost | |
| socket: /tmp/mysql.sock | |
| test: | |
| adapter: mysql2 | |
| database: rails_blog | |
| username: root | |
| password: ****** | |
| host: localhost | |
| socket: /tmp/mysql.sock | |
| production: | |
| adapter: mysql2 | |
| database: rails_blog | |
| username: root | |
| password: ****** | |
| host: localhost | |
| socket: /tmp/mysql.sock | |
| # ================================= | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment