forked from kristjan/cjvt-valency
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
409 B
17 lines
409 B
#!/bin/bash
|
|
echo "exiting - check script"
|
|
exit
|
|
|
|
# obviously, change root and password!
|
|
|
|
# db names: nameDB
|
|
# collection names: lower case, plural
|
|
# user names?
|
|
|
|
# mongo admin -u root -p password --eval "db.getSiblingDB('vlDB').addUser('vluser', 'password')"
|
|
|
|
docker exec -it mongo-container /bin/bash
|
|
mongo -u root -p example
|
|
use valDB
|
|
db.createUser({user: "kristjan", pwd: "password", roles: ["readWrite"]})
|