![]() Then, it will navigate into it.Īfter creating a new database, running the show database command will not show your newly created database. In MongoDB server, if your database is present already, using that command will navigate into your database.īut if the database is not present already, then MongoDB server is going to create the database for you. Wait, we had this command before! Why am I using it again?! SQL terms and NoSQL terms by Victoria MalayaĪlright, let’s talk about how we create a database in the mongo shell. In SQL databases, these are similar to Tables. They are stored in structures called “collections”. With RDBMS (Relational Database Management Systems) we have Databases, Tables, Rows and Columns.īut in NoSQL databases, such as MongoDB, data is stored in BSON format (a binary version of JSON). You can check this if you try the command db to print out the current database name. They are: CrudDB, admin, config and local. test is the initial database that comes by default. This command will show the current database you are in. Finding the current database you’re in db Open up another shell and type mongo to connect to MongoDB database server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |