Migrate your MySql databse to MongoDb.
Project description
A Simple python Script to migrate data from MySQL to MongoDB
Author: ArJun Gawali (arjungawali111@gmail.com)
Date: 27 Oct, 2021
Version: 1.0.1
Purpose: Migrate Data from MySQL to Mongo
You can find the module here You can install it with following command :
pip install mysql-to-mongo==0.0.1
Functions :
-
migrate_all : Migrate all tables from mysql to mongodb
- Parameters :
-
mysqldb_dict : A Python dictionary of your mysql database details
Ex : mysqldb_dict = { "mysql_host" :"localhost", "mysql_database" : "sample_database", "mysql_user" : "root", "mysql_password" : "*******", }
-
mongodb_host : Your MongoDb hostname/Url
-
mongodb_dbname : Choose the name of Database in which the data has to migrate.
-
- Parameters :
-
migrate_single : Migrate specified table
- Parameters :
-
mysqldb_dict : A Python dictionary of your mysql database details
Ex : mysqldb_dict = { "mysql_host" :"localhost", "mysql_database" : "sample_database", "mysql_user" : "root", "mysql_password" : "*******", }
-
mongodb_host : Your MongoDb hostname/Url
-
mongodb_dbname : Choose the name of Database in which the data has to migrate.
-
table : Specific table which has to migrate
-
- Parameters :
Change Log
1.0.1 (27/10/2021)
- First Release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.