Created
April 29, 2019 08:11
-
-
Save serkaniyigun/0662799aeceb3861f879827ca6f4e8a0 to your computer and use it in GitHub Desktop.
Rails Project PostgreSQL to MySQL
This file contains 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
Step 1 | |
Make a backup copy of your data | |
For Rails 3, install the YAML DB gem: https://github.com/ludicast/yaml_db | |
For Rails 2.x install the YAML DB plugin: | |
script/plugin install git://github.com/adamwiggins/yaml_db.git | |
Run the dump task | |
rake db:dump | |
Step 2 | |
Update your config/database.yml file. | |
Step 3 : | |
gem install mysql | |
Have rake create your database | |
rake db:create | |
rake db:schema:load | |
Step 4 | |
Use YamlDb to reload your data into MySql | |
rake db:load |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment