Buscar en moleculax
How To Install Mongify


Mongify is a data translator system for moving your SQL data to MongoDB.Its use to convert Relational Database to No sql Database . Its is very Userful When Project Moves one Database to Another

Steps for Installation of Mongify:-
1) For install Mongify You have knowledge about Ruby and Rails. Firstly Install Gems using this command
       sudo apt-get install rubygems build-essential

2) After Installtion gems for Mongify Installation put command on terminal
    gem install mongify   
After this command you have successfully install mongify

Convert MySql Database to Mongo Db database
1) First Create "database.config" File and Set all Required Information for connection of db put it.
   Database Config file look like this. 
 sql_connection do
  adapter   "mysql"
  host      "localhost"
  username  "root"
  password  "passw0rd"
  database  "my_database"
end
mongodb_connection do
  host      "localhost"
  database  "my_database"
end 

2) For Check database.config Is connection successfull or not using this command
   mongify check database.config

3) Translation is used to auto generate a translation from your SQL database.You simple run it as mongify translation database.config

4) For Set the output of another file : 
  mongify translation database.config > translation.rb
 
5) Once you have your translation file setup mongify to move the data by issuing the process command
   mongify process database.config translation.rb 

 
 
   

.


Powered by

http://emiliogomez.com.ar