mongodb-compass

Unable to connect to AWS Documentdb using MongoDB Compass. No option to pass sslInvalidHostName

蹲街弑〆低调 提交于 2021-02-06 08:58:11
问题 AWS DocumentDB is a relatively new service we're trying to migrate to. To connect from outside of the VPC, you have to create a tunnel to an existing instance. For example: ssh -i "ec2Access.pem" -L 27017:sample-cluster.cluster-cu52jq5kfddg.us-east-1.docdb.amazonaws.com:27017 ubuntu@ec2-34-229-221-164.compute-1.amazonaws.com -N And then you can connect from mongo shell with: mongo --sslAllowInvalidHostnames --ssl --sslCAFile rds-combined-ca-bundle.pem --username <yourUsername> --password

How to delete selected multiple records in a collection in MongoDB using MongoDB compass

拥有回忆 提交于 2021-01-02 05:37:09
问题 I'm very new to MongoDB and MongoDB Compass. I have some 1000 records in a customer collection. How I can delete all the records at once through MongoDB compass. Many Thanks, 回答1: If you don't have indexes on that collection you can just drop the entire collection as shown in the docs. If you have indexes, however, dropping the collection will also delete the indexes, but it is usually much faster to drop the whole thing and then recreate both the collection and the indexes than removing all

Connecting to a MongoDB replicaset (inside kubernetes) with MongoDb compass GUI

穿精又带淫゛_ 提交于 2020-12-15 09:12:22
问题 I have created two replicas (replica set name = rs0) of mongodb with a headless service. apiVersion: apps/v1 kind: StatefulSet metadata: name: tickets-mongo-depl spec: replicas: 2 serviceName: tickets-mongo-srv selector: matchLabels: app: tickets-mongo template: metadata: labels: app: tickets-mongo spec: containers: - name: tickets-mongo image: mongo command: - mongod - '--bind_ip_all' - '--replSet' - rs0 --- apiVersion: v1 kind: Service metadata: name: tickets-mongo-srv spec: clusterIP: None

Connecting to a MongoDB replicaset (inside kubernetes) with MongoDb compass GUI

大城市里の小女人 提交于 2020-12-15 09:05:31
问题 I have created two replicas (replica set name = rs0) of mongodb with a headless service. apiVersion: apps/v1 kind: StatefulSet metadata: name: tickets-mongo-depl spec: replicas: 2 serviceName: tickets-mongo-srv selector: matchLabels: app: tickets-mongo template: metadata: labels: app: tickets-mongo spec: containers: - name: tickets-mongo image: mongo command: - mongod - '--bind_ip_all' - '--replSet' - rs0 --- apiVersion: v1 kind: Service metadata: name: tickets-mongo-srv spec: clusterIP: None

Windows MongoDB - Installed Compass but can't find Compass within system

只愿长相守 提交于 2020-11-26 08:03:42
问题 I ran the MongoDB Community Version Download Setup with the GUI for Mongo - Compass checked. No problems with the installation and the setup was successfully completed. However after the setup I couldn't find Compass installed anywhere in my system. Even the C:\Program Files\MongoDB\Server\3.6\bin didn't have a executable file or dll for compass. What happened to Compass? 回答1: For some reason in Windows 10 it is installed into the hidden AppData directory. At least I found first a shortcut

Windows MongoDB - Installed Compass but can't find Compass within system

让人想犯罪 __ 提交于 2020-11-26 08:02:19
问题 I ran the MongoDB Community Version Download Setup with the GUI for Mongo - Compass checked. No problems with the installation and the setup was successfully completed. However after the setup I couldn't find Compass installed anywhere in my system. Even the C:\Program Files\MongoDB\Server\3.6\bin didn't have a executable file or dll for compass. What happened to Compass? 回答1: For some reason in Windows 10 it is installed into the hidden AppData directory. At least I found first a shortcut

Sending requests from Postman to Heroku returns 503 and/or UnknownReplWriteConcern

不想你离开。 提交于 2020-07-10 10:28:36
问题 I am trying to send a post request from Postman to a Heroku app but it keeps returning a 503 status error with code = H12 . The app works fine in localhost. With regards to the database, I have a cluster (M0) in Atlas and I am using the same non-srv connection string that I am using to connect Compass to the same cluster in Atlas. The only error I see when I run heroku logs is: //single line broken into four lines for readability UnhandledPromiseRejectionWarning: MongooseServerSelectionError:

How to allow all hosts to a replica set in mongodb

淺唱寂寞╮ 提交于 2020-06-28 03:57:31
问题 When I am connecting my replica set from local machine like this "mongodb://my_server_ip:27018/?readPreference=secondary&replicaSet=rs0&appname=MongoDB%20Compass&ssl=false" It gives me an error "Could not reach any servers" and on mongo compass "connect ECONNREFUSED 127.0.0.1:27018" I think this error comes from replica set configs, where host key is "localhost:27018" Below is the replica set member info: { "_id": 1, "host": "localhost:27018", "arbiterOnly": false, "buildIndexes": true,

View more than 20 most recent documents in MongoDB Compass from Schema

醉酒当歌 提交于 2020-01-11 05:34:10
问题 I want to be able to edit some documents in my Mongo DB from compass, but a query only shows 20 of the most recent results. How can I view more than that 20? Or at least view the next 20? 回答1: From the docs ... You can specify a query filter in the query bar. If you click Options to expand the query bar, you also have access to the project, sort, skip, and limit options of the query. So, if you click on Options you can: Get more than 20 docs by changing the value of Limit from the default (

How to convert a string with characters in the int for the entire collection?

我是研究僧i 提交于 2020-01-06 05:47:10
问题 I have a collection of a similar look: _id:5d0fe0dcfd8ea94eb4633222 Category:"Stripveiling (Nederlands)" Category url:"https://www.catawiki.nl/a/11-stripveiling-nederlands" Lot title:"Erwin Sels (Ersel) - Originele pagina" Seller name:"Stripwereld" Seller country:"Nederland" Bids count:21 Winning bid:"€ 135" Bid amount:"Closed" Lot image:"https://assets.catawiki.nl/assets/2011/11/17/7/4/c/74c53540-f390-012e-..." I need to change the "Winning bid" field to a int. That is, remove the currency