Not able to connect database

It is Giving an error related o bad auth, I’ve chagned and updated the user many times

mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true });

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0.

Challenge: Install and Set Up Mongoose

Link to the challenge:


You must replace the <username>, <password> and <dbname> with your actual values, removing the < and > (unless they’re present in your password).

So, if your data credentials are:

username: ak
password: 123456
database name: my_project

Your connection string would be: