Created
February 17, 2012 07:22
-
-
Save devudilip/1851524 to your computer and use it in GitHub Desktop.
Create Rails new Application With default Mysql Database(If sqllite or any other is default)
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
when Rails create App with SqlLite Database as Default. | |
Then U wanted to create app with mysql, follow the steps | |
1> First of all u need to install mysql2 in your system(install mysql2 not mysql) | |
"sudo gem install mysql2 -v=0.2.11" // Version is according to your combinational needs of your rails | |
2> Once you installed, Then u r ready to create New app with Mysql as default | |
"rails new sample_app -d mysql" | |
3>so your app is now created with mysql2 database, (Check in your gem file it will be Present) | |
4> goto "config/database.yml" | |
Check for mysql userid and password that you had given while installation if it is not correct then change it. | |
5> Bundle install n Enjoyeee |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment