projects/Qwestly/qwestly-database.md
Table of Contents
Qwestly/qwestly-database.md
Dedicated Cluster - Cluster2
-
MONGODB_USER=dominick
-
MONGODB_PASS=embNxk9he3klfY0C
-
MONGODB_HOST=cluster0.k4hyh.mongodb.net
-
Org ID: 6785618a4a75f97193013c76
-
Project: https://cloud.mongodb.com/v2#/org/6785618a4a75f97193013c76/projects
-
version: 8.0.18
-
Region: AWS/N. Virginia
-
Cluster Tier: M10 (General)
-
Type: Replica Set - 3 nodes
-
Uri:
cluster2.k4hyh.mongodb.net -
Connection:
mongodb+srv://<db_username>:<db_password>@cluster2.k4hyh.mongodb.net/
MongoDB Local
MONGODB_USER=qwestly
MONGODB_PASS=pAYmEGw9XaAp7mPqktKi
MONGODB_HOST=mongodb.dph.am
MONGODB_DATABASE=clearfit
Shell
# Shell
mongosh "mongodb+srv://cluster0.k4hyh.mongodb.net/" --apiVersion 1 --username dominick --password embNxk9he3klfY0C --authenticationDatabase admin
# Compass
mongodb+srv://dominick:embNxk9he3klfY0C@cluster0.k4hyh.mongodb.net/
# dump & restore
mongodump --uri="mongodb://dominick:152434Dd@mongo.dph.am/?authSource=admin" --db=clearfit --out=./db
mongorestore --uri="mongodb+srv://dominick:embNxk9he3klfY0C@cluster0.k4hyh.mongodb.net/?authSource=admin" --db=qwestly ./db/clearfit
# grant access to user
mongosh -u "dominick" -p "152434Dd" --authenticationDatabase "admin" mongodb://z.dph.am:27017
use admin
db.grantRolesToUser("qwestly", [{ role: "readWrite", db: "qwestly" }])