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.3
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==1.0.3
How to use :
import mysql_to_mongo
mysql_to_mongo.migrate_all(mysqldb_dict,mongodb_host,mongodb_dbname)
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.
-
-
-
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
-
-
Change Log
1.0.1 (27/10/2021)
- First Release
1.0.2 (27/10/2021)
- adding linux in os
1.0.3 (27/10/2021)
- how to use added in README.md
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mysql_to_mongo-1.0.3.tar.gz.
File metadata
- Download URL: mysql_to_mongo-1.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
732d7142298f30dff713f169493f669249594cb14fa402c151d74a47338a44ea
|
|
| MD5 |
bbbc0dc86a7f99613469659caf715b1d
|
|
| BLAKE2b-256 |
b5be201e888094b21a4f763f2e859592ab88b3a00080dd49e9144d1836ddc4fa
|