Skip to content

mohanad86/mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

MogoDB inserting data with python script

inserting Documents, Birthdates, Names

Connecting to the database

First start to connect to the database

  • ssh -L 54321:172.16.0.71:27017 test@servername -p 22
  • mongo localhost:54321

Commands for mongoDB

$ show dbs
$ use selected.db
$ show tables

Delete the database or tables

$ db.test.drop()
$ db.test.dropDatabase()

Find and count data into the database

$ db.test.count();
$ db.test.find();

Count by exacte name

$ db.test.find({"name":"Tom"}).count()

Author: Mohanad Aly

Releases

No releases published

Packages

No packages published

Languages