Mongo öffnet die Shell, ohne Probleme ... ?
ubuntu@ubuntu:/mongo
MongoDB shell version v4.4.6
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("fb329741-b264-4fad-b3a1-8b50b6550672") }
MongoDB server version: 4.4.6
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
https://docs.mongodb.com/
Questions? Try the MongoDB Developer Community Forums
https://community.mongodb.com
---
The server generated these startup warnings when booting:
2021-06-08T12:05:12.194+02:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem
2021-06-08T12:05:16.940+02:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
---
---
Enable MongoDB's free cloud-based monitoring service, which will then receive and display
metrics about your deployment (disk utilization, CPU, operation statistics, etc).
The monitoring data will be available on a MongoDB website with a unique URL accessible to you
and anyone you share the URL with. MongoDB may use this information to make product
improvements and to suggest MongoDB products and deployment options to you.
To enable free monitoring, run the following command: db.enableFreeMonitoring()
To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
---
>
db.stats()
{
"db" : "test",
"collections" : 0,
"views" : 0,
"objects" : 0,
"avgObjSize" : 0,
"dataSize" : 0,
"storageSize" : 0,
"totalSize" : 0,
"indexes" : 0,
"indexSize" : 0,
"scaleFactor" : 1,
"fileSize" : 0,
"fsUsedSize" : 0,
"fsTotalSize" : 0,
"ok" : 1
}
> show dbs
admin 0.000GB
config 0.000GB
local 0.000GB
pool 0.000GB
>
Display More
scheint leer zu sein..?
oder doch nicht, bin da eher Nutzer nicht Programmierer
> use pool
switched to db pool
> db
pool
> db.stats()
{
"db" : "pool",
"collections" : 2,
"views" : 0,
"objects" : 2,
"avgObjSize" : 889,
"dataSize" : 1778,
"storageSize" : 57344,
"indexes" : 2,
"indexSize" : 40960,
"totalSize" : 98304,
"scaleFactor" : 1,
"fsUsedSize" : 4961927168,
"fsTotalSize" : 31096750080,
"ok" : 1
}
>
Display More