12345678910111213141516171819 |
- use schematics
- db.createUser({ user: "schematic", pwd: "schematic", roles: [ "readWrite", "dbAdmin", { role: "dbOwner", db: "schematics" } ]})
- db.runCommand({compact: "attachments.files"})
- db.runCommand({compact: "attachments.chunks"})
- use admin
- query with Collation {locale: "en", strength : 2}
- {$or: [{$text : {$search : "blue"}} , { manufacturer: "swr"}, {model: "OM"}]}
- https://127.0.0.1:9443/api/v1/schematics?query={"$fulltext":"\"blue \" \"Mesa\""}&offset=0&limit=10
- {"name": "w.klaas@gmx.de", "password":"akteon0000", "admin": true}
- ./mongodump.exe --host 192.168.178.12:37017 -u admin -p akteon00 --authenticationDatabase admin -d schematics -o e:\temp\schematics_mongo.out
- ./mongorestore.exe --host 192.168.178.14:27017 -u admin -p akteon00 --authenticationDatabase admin -d schematics E:\temp\schematics_mongo.out\schematics\
|