mongosh mongodb://admin:pass@localhost:27017
use sandbox
db.createCollection("synthetic");
db.synthetic.insertOne({ message: "Synthetic database initialized", timestamp: new Date() })
use admin
db.createUser({ user: "sandbox", pwd: "PassSand", roles: [ { role: "readWrite", db: "sandbox" } ] });
No hay comentarios:
Publicar un comentario