Compose-Examples/examples/unify-network-application/init-mongo.js

3 lines
244 B
JavaScript
Raw Normal View History

2023-10-28 20:25:46 +00:00
db.getSiblingDB("unifi-db").createUser({user: "unifi", pwd: "unifi", roles: [{role: "readWrite", db: "unifi-db"}]});
db.getSiblingDB("unifi-db_stat").createUser({user: "unifi", pwd: "unifi", roles: [{role: "readWrite", db: "unifi-db_stat"}]});