Questions tagged [mlab]

MongoLab (Rebranded as mLab) is a fully-managed MongoDB Database-as-a-Service (DBaaS) platform that automates the operational aspects of running MongoDB in the cloud.

MongoLab is a fully-managed cloud database service featuring highly-available MongoDB databases, automated backups, web-based tools, 24/7 monitoring, and expert support. By hosting MongoDB on MongoLab’s Database-as-a-Service (DBaaS) platform, developers and IT professionals are free to focus their attention on product development instead of operations.

MongoLab runs on all the major cloud platforms, including Amazon, Joyent, Rackspace and Windows Azure, and has partnered with all of the major Platform-as-a-Service (PaaS) providers to enable seamless integration with the application tier.

Headquartered in San Francisco, MongoLab is backed by premier venture and angel investors including Foundry Group, Baseline Ventures, GRP Partners, Freestyle Capital, and David Cohen of TechStars.

Learn more at https://mlab.com/

852 questions
10
votes
1 answer

Connect to MongoDB database using mongoose behind a proxy

I am using mongoose to connect to my database in mongolab in my server.js file : mongoose.connect('mongodb://MyUsername:MyPassword@ds089702.mongolab.com:89702/todo'); When i launch my server with node server.js command, i see this error in my…
Obama
  • 2,586
  • 2
  • 30
  • 49
10
votes
1 answer

connecting a mongodb created in mongolab through a java application

i created a mongodb instance in mongolab It provided me with a connection URI. mongodb://:@ds041177.mongolab.com:41177/myclouddb I used the following java code to connect to my database- Mongo m = new Mongo(); …
user1946152
  • 375
  • 1
  • 9
  • 24
10
votes
4 answers

MongoDB - strip non numeric characters in field

I have a field of phone numbers where a random variety of separators have been used, such as: 932-555-1515 951.555.1255 (952) 555-1414 I would like to go through each field that already exists and remove the non numeric characters. Is that…
StackOverflowed
  • 5,854
  • 9
  • 55
  • 119
9
votes
2 answers

mlab resetting database password

I am using mLab on Heroku to host my database, and I forgot my database password. I could not find anything about resetting my database password except for the following from the mLab website: "it is possible that you’re mistakenly using the…
dyang
  • 463
  • 3
  • 13
9
votes
1 answer

How to get node.js to connect to mongolab using mongoose

I've been trying to use mongoose (module for node.js and mongodb). And tried to get a connection with mongolab up and running. I tried the following at the top of my app.js file, but I couldn't seem to enter the db.on function. global.mongoose =…
Bren
  • 3,516
  • 11
  • 41
  • 73
8
votes
4 answers

Mongo Updates being super slow

We are facing a timeout issue with our mongo updates. Our collection currently contains around 300 thousand documents. When we try to update a record via the UI, the server times out and the UI is stuck in limbo. Lead.updateOne({ _id:…
aliirz
  • 1,008
  • 2
  • 13
  • 25
8
votes
3 answers

java.lang.NoClassDefFoundError when using MongoDB driver

I am trying to connect to a MongoDB database hosted on mlab using the Java driver on a servlet. import org.bson.Document; import com.mongodb.MongoClient; import com.mongodb.MongoClientURI; import com.mongodb.client.MongoCollection; import…
G.Ses
  • 73
  • 1
  • 1
  • 3
8
votes
0 answers

Using mongoose and mlab behind a proxy

Can't connect to my mlab database if I'm behind a proxy. Any idea how to achieve this? I've already googled and found no answer... Here is my connection: mongoose.connect(config.db.URI); var db = mongoose.connection; db.on('error', function(){ …
Ricardo Araújo
  • 207
  • 1
  • 12
8
votes
2 answers

Python Mlab - cannot import name find_available_releases

I am new to Python. I am trying to run MATLAB from inside Python using the mlab package. I was following the guide on the website, and I entered this in the Python command line: from mlab.releases import latest_release The error I got was: cannot…
KSS
  • 81
  • 1
  • 4
8
votes
2 answers

Mongoid fails on ruby 1.9.3

So I'm playing around with mongo stuffs. Created a new heroku app, added a mongolab option to it, but every mongoid method fails. I googled around, and it looks like this issue was common with ruby prior to 1.9.3, but I'm running 1.9.3. Here's the…
Stephane Delcroix
  • 16,134
  • 5
  • 57
  • 85
7
votes
1 answer

How to export mlab online database to file

I've been given a database hosted on mlab. I'm trying to download the files off of the database and onto my computer. How may I go about that? I should add I have never worked with mlab or MongoDB before. All I want to do is download the files in…
user3767096
  • 81
  • 1
  • 3
7
votes
2 answers

How to subtract two date time in mongodb

I have used aggregate function. db.checkins.aggregate([ {$match: {checkinType: "Beacon", "associationIds.organizationId":"af39bc69-1938-4149", "checkinData.time": {"$gte": new Date("2018-01-18T18:30:00.000Z"), …
Rahul Saini
  • 927
  • 1
  • 11
  • 28
7
votes
1 answer

Loopback MongoError: not authorized for query on heroku_xxxx.role

I'm using Loopback for my server with the following setup: "loopback": "^2.36.0", "loopback-boot": "^2.23.0", "loopback-component-explorer": "^2.4.0", "loopback-component-storage": "^1.9.1", "loopback-connector-mongodb":…
denislexic
  • 10,786
  • 23
  • 84
  • 128
7
votes
1 answer

Count occurrences of duplicate values

How do I structure my MongooseJS/MongoDB query to get total duplicates/occurrences of a particular field value? Aka: The total documents with custID of some value for all custIDs I can do this manually in command line: db.tapwiser.find({"custID" :…
user3871
  • 12,432
  • 33
  • 128
  • 268
7
votes
3 answers

can't connect to mongolab with node.js on heroku

I am having trouble making node.js and mongodb with mongolab work on heroku. I have read other issues like How do I setup MongoDB database on Heroku with MongoLab? and How do I manage MongoDB connections in a Node.js web application? but I still can…
user2528290
  • 95
  • 1
  • 2
  • 5
1 2
3
56 57