Durchsuchen nach
Schlagwort: Mongoshell

MongoDB – Queries with Python

MongoDB – Queries with Python

This is an article for people who have already installed MongoDB on their pc and want to do more with a Python script and the database. Installed version of MongoDB What is Pymongo? Pymongo is like a toolbox that allows your Python programme to communicate with the MongoDB database. Think of it this way: MongoDB is the large chest of drawers containing your data, and Pymongo is the set of tools your Python programme needs to open drawers, insert new…

Weiterlesen Weiterlesen

MongoDB in Fedora Linux – how is the configuration of the server

MongoDB in Fedora Linux – how is the configuration of the server

Mongoshell The MongoShell is an interactive command window for the MongoDB database. You can use it for the CRUD operations. The MongoShell comes with the installation of MongoDB. After test, you type in the commands. What is CRUD? Create, Read, Update, Delete The command for the MongoShell mongosh It is possible that you see this message, but you can ignore it: and type the command: db.serverCmdLineOpts() The output is in the JSON (JavaScript Object Notation) Format. test> db.serverCmdLineOpts(){argv: [ ‚/usr/bin/mongod‘,…

Weiterlesen Weiterlesen

MongoDB – einfache Abfragen in der Mongoshell

MongoDB – einfache Abfragen in der Mongoshell

Was ist MongoDB? MongoDB ist wie eine sehr große, flexible Schubladenkommode für deine Daten. Stell dir vor, jede Schublade ist eine Art Ordner, den wir „Collection“ nennen. In diese Ordner kannst du Informationen ablegen, die zusammengehören, zum Beispiel alle Kundendaten oder alle Produktinformationen. Das Besondere ist, dass du in diese „Ordner“ nicht nur Zettel mit immer gleichen Feldern legen musst. Jeder „Zettel“ (wir nennen ihn „Dokument“) kann ganz anders aussehen und unterschiedliche Informationen enthalten. Das macht MongoDB sehr flexibel, wenn…

Weiterlesen Weiterlesen