Durchsuchen nach
Schlagwort: MongoDB

Installation von MongoDB 8.0.19 in AlmaLinux 9.7

Installation von MongoDB 8.0.19 in AlmaLinux 9.7

Auf meinem Notebook lief bislang „nur“ die MariaDB – Datenbank. Nun habe ich sie auch mit MongoDB ergänzt und zwar mit einer der neuesten Version. Für AlmaLinux braucht man ein Repo, damit MongoDB installieren. Wozu braucht man MongoDB? In erster Linie benutze ich es, um ganz lange Texte zu speichern. Im Gegensatz zu MariaDB ist es keine Tabellen-Datenbank (daher auch ist es auch in NoSQL-Datenbank), die die Daten in Dokumenten speichern und in diesem Fall das BSON-Format. MongoDB wandelt das…

Weiterlesen Weiterlesen

Counting objects in a collection

Counting objects in a collection

MongoDB: Here’s a small script to count some values ​​in a collection. What can’t you do with Python? I really like statistics, especially my own. For my MongoDB database, which I use to track more data on Spain than MariaDB, I’ve written a small script to collect a lot of average values. With 521 documents, it’s interesting to know these averages. Here is a screenshot with the current results: And here’s the script:

MongoDB as Backend

MongoDB as Backend

For the first time, I have created a backend for my installed MongoDB database. You want to have this on your browser? Then follow the text below: What is MongoDB MongoDB is a document-oriented NoSQL database that stores data in flexible, JSON-like documents, allowing for easy storage and retrieval of structured, semi-structured, and unstructured data. Unlike traditional relational databases that use tables and rows, MongoDB uses collections and documents, making it more adaptable to changing data structures. It was designed to handle large volumes…

Weiterlesen Weiterlesen

MongoDB lists all databases with Python

MongoDB lists all databases with Python

You can list all created databases in MongoDB with a Python script. This Python script might also be available for Windows. The installed versions of Python, MongoDB, pymongo I have older version, what I can do? It might work with older version, but I’m not sure. Updating pymongo pip install pymongo -U What does this script do? ✅️ Checking whether MongoDB is installed on Linux and Windows ✅️ Checking whether pymongo is installed on Linux and Windows. Pymongo you for…

Weiterlesen Weiterlesen

MongoDB in general

MongoDB in general

General information about MongoDB What is MongoDB? MongoDB is a document-oriented NoSQL database that stores data in flexible, JSON-like documents, allowing for easy storage and retrieval of structured, semi-structured, and unstructured data. Unlike traditional relational databases that use tables and rows, MongoDB uses collections and documents, making it more adaptable to changing data structures. It was designed to handle large volumes of data and is known for its scalability, flexibility, and ease of use.  On Linux, you can check the status of the server…

Weiterlesen Weiterlesen