diff --git a/Practical/Assignment-A9+B4+C1 (Mini Project)/mongo_Connectivity-1.txt b/Practical/Assignment-A9+B4+C1 (Mini Project)/mongo_Connectivity-1.txt new file mode 100755 index 0000000..b83598c --- /dev/null +++ b/Practical/Assignment-A9+B4+C1 (Mini Project)/mongo_Connectivity-1.txt @@ -0,0 +1,24 @@ + + + + + +sudo python3 -m pip install pymongo + +###Open mongo +use test1 +db.createCollection("emp") + +###Open Python +from pymongo import MongoClient +client=MongoClient("mongodb://127.0.0.1:27017") +database=client.test1 +collection=database.emp +collection.insert_one({"name":"smartphone","quantity":"10","price":"50000"}) +print("inserted") +client.close() + +## check output in mongo + + +Dr.S.K.Wagh (MES's Wadia COE,Pune) \ No newline at end of file diff --git a/Practical/Assignment-A9+B4+C1 (Mini Project)/mongo_Connectivity.txt b/Practical/Assignment-A9+B4+C1 (Mini Project)/mongo_Connectivity.txt new file mode 100755 index 0000000..e228504 --- /dev/null +++ b/Practical/Assignment-A9+B4+C1 (Mini Project)/mongo_Connectivity.txt @@ -0,0 +1,21 @@ + + + + + +sudo python3 -m pip install pymongo + +###Open mongo +use test1 +db.createCollection("emp") + +###Open Python +from pymongo import MongoClient +client=MongoClient("mongodb://127.0.0.1:27017") +database=client.test1 +collection=database.emp +collection.insert_one({"name":"smartphone","quantity":"10","price":"50000"}) +print("inserted") +client.close() + +## check output in mongo diff --git a/Practical/Assignment-A9+B4+C1 (Mini Project)/mysql_Python connectivity.pdf b/Practical/Assignment-A9+B4+C1 (Mini Project)/mysql_Python connectivity.pdf new file mode 100755 index 0000000..0ddeedb Binary files /dev/null and b/Practical/Assignment-A9+B4+C1 (Mini Project)/mysql_Python connectivity.pdf differ