Create the MongoDB database(NoSQL) you can install mongodb on windows.then you have to open another directory in C:/data/db. beacause you have to store your data. then go the MongoDB's bin Directory and open command prompt and then type the "mongod" in the terminal.it is the start point of the mongodb server. these are the basic mongodb package components: you can start mongo client tool by using administrative CMD prompt and then type " mongo " Create the database using commands and input some data: show dbs- displaying the databases use dbname-use the database show collections use collectionnmae db.collectionname.find()- print the data in row db.collectionnmae.find().pretty()-print the data in coloumn How to Backup and the Restore the database: Open the another cmd prompt(Administor account) and type mongodump.Then it will be creates a folder called dump. If you are deletes the database or collections,then you can ...
Popular posts from this blog
Build the Maven Project Easy
By
slitx
-
Build the Maven Project (Without the IDE) step 1 : download the Maven using below link---> http://maven.apache.org/download.cgi Then , set the Environment varaibles. Ensure JAVA_HOME environment variable is set and points to your JDK installation. Add the bin directory of the created directory apache-maven-3.5.0 to the PATH environment variable. Check to verify , type in CLI ----->>>> mvn -v . step 2 : To build a Maven project via the command line, run the mvn command from the command line. The command should be executed in the directory which contains the relevant pom file. You need to provide the...
By
slitx
-
Comments
Post a Comment