mongo.txt 862 B

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