title: Connect to mLab mongoDB database using nodeJS Strapi
body: <p>I just got started using strapi framework and I would like to use mLab as my mongoDB database, so I go to configure strapi and fill the following details:</p>
  
  <pre><code>{
    "defaultConnection": "default",
    "connections": {
      "default": {
        "connector": "strapi-mongoose",
        "settings": {
          "client": "mongo",
          "host": "localhost",
          "port": 27017,
          "database": "development",
          "username": "",
          "password": ""
        },
        "options": {}
      }
    }
  }
  </code></pre>
  
  <p>The details I get from mLab are: </p>
  
  <pre><code>mongodb://myUsername:myPassword@ds047891.mlab.com:41365/myDatabase
  </code></pre>
  
  <p>Here is my final config:</p>
  
  <pre><code>{
    "defaultConnection": "default",
    "connections": {
      "default": {
        "connector": "strapi-mongoose",
        "settings": {
          "client": "mongo",
          "host": "ds047891.mlab.com",
          "port": 41365,
          "database": "myDatabase",
          "username": "myUsername",
          "password": "myPassword"
        },
        "options": {}
      }
    }
  }
  </code></pre>
  
  <p>When I try to start strapi, I get the following error: </p>
  
  <pre><code>DEBUG (2748 on DESKTOP-HAL1ATE): Server wasn't able to start properly.
  ERROR (2748 on DESKTOP-HAL1ATE): (hook:mongoose) takes too long to load
  </code></pre>
  
  <p>I think that I did not setup my configuration right, but I can't pinpoint where the problem is. I hope someone could, thanks.</p>