Nosql db availability


#1

Which nosql db is available in the lab to practice?
Is mysql also available in the lab?


#2

MongoDB is available.


#3

Could you please confirm hbase is also available?


#4

yes it is available.


#5

hi Sandeep,
Can you please share the document or recording to connect to MongoDB available through ClodXLab.

Regards,
Pradeep.


#6

Launch MongoDB:

MacBook-Air:~ sandeep$ ssh sandeepgxxx@e.cloudxlab.com
Last login: Sun Mar 10 15:08:21 2019 from 180.151.104.145
[sandeepgiri9034@ip-172-31-38-146 ~]$ mongo
MongoDB shell version v3.4.18
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.18
>_

Create Collection

> db.createCollection(“x”)
{ “ok” : 1 }

Insert into collection

> db.x.insert({id:1})
WriteResult({ “nInserted” : 1 })

> db.x.insert({name:“Sandeep Giri”})
WriteResult({ “nInserted” : 1 })

List the documents:

> db.x.find()
{ “_id” : ObjectId(“5c891e524a474028b7c4b9db”), “id” : 1 }
{ “_id” : ObjectId(“5c891e754a474028b7c4b9dc”), “name” : “Sandeep Giri” }


#7

Thanks Sandeep for the timely response.