Introduction

Probably No-SQL type databases would be useful for distributed storage of badly formatted objects like server and application logs.

Connection

Connection string is

mongodb://username:password@138.253.60.189:27017/?authServer=admin

Create admin user for specific database

Please contact us if you would want to setup a database with credentials to read and write unstructured documents (usually in JSON format). We can create them. To access the database, e.g. with mongosh

test> show dbs
test> use mydb

Create collection

mydb> db.createCollection("mycol")

Download MongoDB-Compass to quickly visualise.

Script

import pymongo 
myclient = pymongo.MongoClient("mongodb://username:password@138.253.60.189:27017/?authSource=admin")
mydb0 = myclient["mydb"]
mycol0 = mydb["mycol"]

mydict = { "name": "John", "address": "Highway 37333" }
x = mycol0.insert_one(mydict)
Topic revision: r1 - 08 Jul 2026, MarkWong
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback