title: I am not able to connect with mongodb atlas using mongoose.connect
body: <p>I am trying to build a website for my college hence I chose mongodb as my database using NodeJS . It worked great in my local machine and on the Heroku. But now I am deploying it on the cPanel there is one issue that I am not able to connect to <code>mongodb</code> atlas and hence not able to get the data. From error logs I think the problem is with mongoose connect() but I am not sure. May be problem can be different also. I am attaching error logs and mongoose code from app.js file for better understanding of the problem. Please can you help in this.</p>
  <pre><code>mongoose.connect(&quot;mongodb+srv://usernmae:password@cluster0.1laezrl.mongodb.net/Yearbook10&quot;,
      {
        useNewUrlParser: true,
        useUnifiedTopology:true
      }
      ).then(()=&gt;{
        console.log(&quot;Connected with the db&quot;)
      })
  </code></pre>
  <p><a href="https://i.stack.imgur.com/VRov5.jpg" rel="nofollow noreferrer">Nodejs in cPanel</a>
  [1]: <a href="https://i.stack.imgur.com/RRdtb.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/RRdtb.jpg</a></p>