Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serkaniyigun/0662799aeceb3861f879827ca6f4e8a0 to your computer and use it in GitHub Desktop.
Save serkaniyigun/0662799aeceb3861f879827ca6f4e8a0 to your computer and use it in GitHub Desktop.
Rails Project PostgreSQL to MySQL
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