In my current application i am using PostgreSQL Data base,
but I want to change the PostgreSQL database into MYSQL DB.
if it's impossible ?
In my current application i am using PostgreSQL Data base, but I want to change the PostgreSQL database into MYSQL DB. if it's impossible ? |
|||||||||
|
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 |
||||
|
this is a duplicate Migrate database from Postgres to MySQL dont forget to change the gems and your database config file to something like this:
|
|||
|