You are the best explainer on RUclips sir. I didn't find this kind of information related to production practices anywhere on RUclips or on paid courses as well. At last congratulations for 1 lAkhs subscribers.
This is not a connection of professtional mongoDB .....this is connection of heart to heart and brain to brain. you are best teacher whom i meet on youtube.
@sayanbiswas8242 my node v is 18, I was frustrated same string I tried in my friends laptop it was working I don't know what wents wrong evrything tried from stack overflow to chatgpt and also disabled all firewalls runs many commands changed the internet may be my ISP has dynamic IP tried everything bro. BTW was much interested in python also doing more code in python so I shifted to django framework now in python same string works very well also I don't need to directly write query Python ORM helps to communicate with database and write query on behalf of you
24:00: DB is another continent, hence use promises or try-catch with async-await whenever you are connecting to any database, thanks Hitesh Sir for teaching with this much clarity! 1. Assignments : - Read about process and exit() method in nodejs - Console log karke dekho joh object DB connect hone par return hota hai. 2. Tips: - Read the errors before referring to any material for resolving. - write error statements in a clear manner, debuggging mei help karegi. - env file mei change karte hi, server ko restart karna hi padega, no other option, nodemon env files ka track nahi rakhta.
Two important points about database connectivity: 1. When connecting to databases, handling potential data-not-found scenarios is essential. Employ try/catch blocks or promises to manage errors or we can also use promises. key to remember : ( wrap in try-catch ) 2. Database operations involve latency, and traditional synchronous code can lead to blocking, where the program waits for the database query to complete before moving on. So, we should async/await which allows for non-blocking execution, enabling the program to continue with other tasks while waiting for the database response. key to remember : ( always remember the database is in another continent, so use async await)
Hye soniya , just now I have saw your linkdin profile. Could you learned your backend from this series? Because now I am learning by backend from this series.
# Connecting database in MERN with debugging - Created MongoDb Atlas account. - Created a Database and connect I.P Address to access database from anywhere. - Used `dotenv , mongoose , express` packages. - Two important points about database connectivity: 1. When connecting to databases, handling potential data-not-found scenarios is essential. Employ try/catch blocks or promises to manage errors or we can also use promises. - key to remember : ( wrap in try-catch ) 2. Database operations involve latency, and traditional synchronous code can lead to blocking, where the program waits for the database query to complete before moving on. So, we should async/await which allows for non-blocking execution, enabling the program to continue with other tasks while waiting for the database response. - key to remember : ( always remember the database is in another continent, so use async await) - Used two approach to connect the database - 1. In Index File, 2. In Seprate DB file - Assignments - - console log `connectionInstance` - Read more about process.exit code
Hello ayush , actually I am facing issue while connecting to database . I followed all the steps along with the sir but i am getting an error saying "MONGODB connection error MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted" . I literally tried everything possible but still not able to resolve it . Please help me resolve this issue
@@riya2448 Now your error get resolve ?? : if not kindly tell me , Where you are facing this issue , is that after running (console.log(connectionInstance)) or while doing Setup of MongoDB, Kindly breakdown the problem .
@@SKD14344AK nope the same error message is popping again and again. The error is coming after running npm run dev. I have added the Ip address but it is not able to connect
We cannot just use the phrase THANK YOU for the kind of content you are giving. Worked for almost 2 years in a mnc then also I think I could not learn so much which you have taught through your videos.
The way you explain things is on whole different level ❤ It's been 3 days i started this series and got soo much clarity in almost everything you taught. Thank you so much sir!❤🙏
Hats off to you Sir, You are reallly helping. Every video of yours is great. I haven't watched all of them but I am following your backend tutorials, tbh from last 4 hrs, practicing accordingly. The way you are teaching and telling every single thing what a student can think of ( kam se km mein ), every chota se chota doubt which I always faced earlier, is getting clearer. Now I know what I am writing.
Hats off to you!! I set a password with special characters and it was throwing errors when connecting to MongoDB, then I remembered that you told not to use special characters. Upon changing the password, the error got solved. I whole heartedly appreciate your efforts in providing such high quality content and in-depth content.
DB is another continent, hence use promises or try-catch with async-await whenever you are connecting to any database, thanks Hitesh Sir for teaching with this much clarity!
as described in video for setup of dotenv config is not working in node 20+ versions so, --> we can simply include - import {} from 'dotenv/config' at the top of the src/index.js file and by this we can avoid the require experimental module configuration inside the package manager. This works because of how ES6 modules imports modules. Before doing anything else in a file (say index.js) it does all the imports first. It does a depth first traversal of these imports, executing any code inside it. If we import dotenv first, it will execute config and add any env variables before doing anything else in the code.
congratulations on 100k ...soon you will complete your next milestone 500k and then 1million and so on...your teaching style is very unique and different...i am 100% sure that on youtube no one give this level of knowledge....we are very lucky that we are in the ERA of Hitesh sir💯
best part is - "Error ko read krna sbse important hai "(timestamp : 35:20) sir ke hrr video me 1 na 1 line to jarur hi milegi jo coding to assan(easy) bnayegi 🙏 ❤
Since Node v20.6.0, node is supporting env file without any 3rd party library (dotenv). You have to just add --env-file in your script tag in package.json. So, your script tag will look like: "scripts": { "start": "node --env-file=.env src/index.js", "dev": "nodemon --env-file=.env src/index.js" }
bro thank you so much, yr 2 din ho gye the erro resolve nhi hua, aaj mei ye playlist leave krne wala tha sirf is error ki waja se, thanks yr, aapne ye solution kahan se nikala, khud kra he ya source se? and again thanks for ur comment bro ♥
Bro really appriciate your help....Its a real problem that I am facing from a long time...What I am doing is: cd src, then node --env-file=.env index.js, which is giving error. Just adding the src/index.js and running it from the root directory solves it. Really funny, but thanks bro.
sir no words for you teaching. the way you explained first IIFI , then async then try/catch .. just wow. maza agaya sir. The best backend series i have watched so far.. ☕☕♥
00:05 Learning how to connect a database in MERN 01:58 Connect database in MERN with debugging 06:22 To connect to the MongoDB database in the MERN stack with debugging, you need to allow IP address access, have the correct ID password, and the URL. 08:20 Connect database in MERN with debugging 12:08 Two approaches to connect database in MERN 14:24 Mongoose is used to connect to the database 18:14 Connect database in MERN with debugging 19:59 Connecting the database in MERN with proper error handling 23:21 Connect database in MERN with debugging 25:01 Handle connection errors and exit the process if needed. 28:27 Connecting database in MERN 30:34 Set up environment variables in the index file for consistent code 34:09 Troubleshooting database import issues in the MERN stack 35:49 Successfully connected the database 39:07 Learned how to connect database in MERN 40:54 Connecting a database in MERN with debugging
Sirrrrr, bht pyari video hai. Abi tk bht baar connect kia hai db single line code likh ke. lekin jo aapne ye bde ache se smjaya hai 🙌. " DB is always is another continent " kbi ni bhule ga SIr. ❤
One imporatant thnk to take away from this video is - Read the error, it is important to read the error, inspite of doing just chatGpt or stack-overflow. Very motivational for be the engineer. one important is just install the mongodb extension in vs code, and while connection in mongodb check for vs code connection option, and ready to boom the mongodb.
thanku so much for this backend we also want a full mernstack ...we can learn frontend and backend but we want a proper guideline through you in which you actually teach us the approach so that we can make projects by our own
Bhaiya jitna thanku bolu utna kam pdega aapke liye, pata nhi aap itna efforts humare liye kyu laga rhe ho but please kabhi piche mat hatna ,hume aap jaise logo ki bohot jrurat hai ,jjisme koi ghamand aur lalach naa ho , mai try karunga ki mai bhhi aage jaake aapke jaisa banu , logo me knowledge baatu and batau ki maine hitesh bhaiya se sikha hai ye
part time me reels nahi comment scroll karne ka sokh hai 🤣🤣 to beshak hame bhi aise parttime work dene me maja ata hai karte rahiye comment ko scroll , and thanks for this valuable content , ab kya hi bole jata jate amzing bol deta hu ❤❤
The way you explain is just another level sir, i watched this video 2times. Now my concepts about database is so clear. So much knowledge in these videos. Thank you sir ❤
Sir thanks a lot . Itna in depth content to udemy py bhi nai milta sir thanks for your hard work for us yeh cheezain hmain compnay main seekhtay seekhtay 3 sy 4 months lag jaty but apki yeh series too best hain ab aik beginner level ka developer bhi Well structured and fully optimized web app bnany k qabil hoo jaye ga yeh series dekh k..... Again a Large Bundle of thanks for your efforts
01:58 Connect database in MERN with debugging 06:22 To connect to the MongoDB database in the MERN stack with debugging, you need to allow IP address access, have the correct ID password, and the URL. 08:20 Connect database in MERN with debugging 12:08 Two approaches to connect database in MERN 14:24 Mongoose is used to connect to the database 18:14 Connect database in MERN with debugging 19:59 Connecting the database in MERN with proper error handling 23:21 Connect database in MERN with debugging 25:01 Handle connection errors and exit the process if needed. 28:27 Connecting database in MERN 30:34 Set up environment variables in the index file for consistent code 34:09 Troubleshooting database import issues in the MERN stack 35:49 Successfully connected the database 39:07 Learned how to connect database in MERN 40:54 Connecting a database in MERN with debugging
Idk what is people's problem that thay cant even like this helpful video i really want you to grow even more ❤❤ i cant even watch 5min of video of other youtubers on backend they make me sleep while here i watch hours of bideos and dont even realize just love you and your way of teaching 💗😊😊
You might find my comment funny but I didn't understand anything in this video yet I watched it till the end.😅 I'm going to start a new role as an associate functional consultant and I thought this would be something related to SQL and it's backend communication so I started watching it..😅
sir watching your video after watching the basic video of piyush garg bhaiya and your video is like the cherry on the top his video has perfect for basics and you video takes that basics in advance
Finished this lecture on the last day of '23 and I can happily say that ki mera MongoDB ka darr almost khatam ho gaya..! Really grateful for this series...🤍 Thank You so much Hitesh Sir and a very Happy New Year...💫
Itna acha detail me to aap hi padhate ho, dusre YT channel wale to Mongooes padhna shuru hi mongooes.connect se karte hai......Hats off and much appreciate your effort.
sir jiiii apse padhne ke baad tho experience job role pe bi apply kia jaa skta . soo deep content of such highlevel knowledge just free ! op hitesh sir
This level of deep knowledge you got from doing work for so many years and now you giving it to community for free of cost to do this type of efforts are not that easy it is difficult for you also but although you are giving too much to the community and as you said in the podcast with Ranveer you will definitely bring new revolution in the tech community I believe in you sir keep going whole community is with you. Thank you too give this production grade level knowledge that no one talk in current market. You are great lots of love from Mehsana, Gujarat❤🙌☺.
I was studying mongodb for first time after completion of 39min I feel confident about mongodb, thanks alot hitesh sir 🍵💌❤(most important thing : database durse continent me hai)😁😁
Recognizing Hitesh Sir's role in #chaiaurcode #backenddevelopment is commendable. Being grateful to teachers like him who shape our learning journeys is valuable
if someone getting mongodb connection error, then we don't need import dotenv in new node versions we just have to change package.json setting to "dev": "nodemon --env-file=.env src/index.js" and if you are still getting error connection then check your password (exclude special character as Hitesh sir said) (actually experienced this issue) Happy coding ^_^
Completed javascript course ✅ Completed Chai aur React ✅❤ Now here overcoming my fears 🙏.Thank you Hitesh Sir for this pure gold teachings and helping us become what we dream to be...
In the garden of education, you are the rare and precious bloom that makes it a place of beauty and growth. Thank you for cultivating a love for learning in all of us🥰
It's wonderful that you recognize and appreciate Hitesh Sir's contributions to #chaiaurcode #backenddevelopment. Expressing gratitude to those who have positively impacted our lives is always a meaningful gesture.
How to solve this error?MONGODB Connection Error: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://" at new ConnectionString (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend ode_modules\mongodb-connection-string-url\lib\index.js:86:19) at parseOptions (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend ode_modules\mongodb\lib\connection_string.js:186:17) at new MongoClient (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend ode_modules\mongodb\lib\mongo_client.js:51:63) at NativeConnection.createClient (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend ode_modules\mongoose\lib\drivers ode-mongodb-native\connection.js:293:14) at NativeConnection.openUri (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend ode_modules\mongoose\lib\connection.js:801:34) at Mongoose.connect (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend ode_modules\mongoose\lib\mongoose.js:404:15) at connectDB (file:///C:/Users/Govind%20Mishra/OneDrive/Desktop/WebDev/Chai%20Aur%20Backend/src/db/index.js:6:47) at file:///C:/Users/Govind%20Mishra/OneDrive/Desktop/WebDev/Chai%20Aur%20Backend/src/index.js:12:1 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) [nodemon] app crashed - waiting for file changes before starting...
hitesh.ai/whatsapp
Join here for all updates
Congratulations sir for 100k
Sarkar ab tohh 100k ho gya
Ab Mac dilva do laptop kharab ho gya hai Mera
Video b nahi dekh pa Raha hu😢😢😢
You are the best explainer on RUclips sir. I didn't find this kind of information related to production practices anywhere on RUclips or on paid courses as well.
At last congratulations for 1 lAkhs subscribers.
Chai aur Code #ChaiaurCode @chaiaurcode
thanks bhai for teaching backend love from pakistan
This is not a connection of professtional mongoDB .....this is connection of heart to heart and brain to brain. you are best teacher whom i meet on youtube.
bro have you tried? it is connecting or not i am getting issue while connection
@@ShaquibKhan what version of node are you running?
@sayanbiswas8242 my node v is 18, I was frustrated same string I tried in my friends laptop it was working I don't know what wents wrong evrything tried from stack overflow to chatgpt and also disabled all firewalls runs many commands changed the internet may be my ISP has dynamic IP tried everything bro. BTW was much interested in python also doing more code in python so I shifted to django framework now in python same string works very well also I don't need to directly write query Python ORM helps to communicate with database and write query on behalf of you
24:00: DB is another continent, hence use promises or try-catch with async-await whenever you are connecting to any database, thanks Hitesh Sir for teaching with this much clarity!
1. Assignments :
- Read about process and exit() method in nodejs
- Console log karke dekho joh object DB connect hone par return hota hai.
2. Tips:
- Read the errors before referring to any material for resolving.
- write error statements in a clear manner, debuggging mei help karegi.
- env file mei change karte hi, server ko restart karna hi padega, no other option, nodemon env files ka track nahi rakhta.
he is the only teacher jis ka course agar main chalu krta hu toh hamesha pura khatam bhi krta hu! ty sir!!!
Bs aise hi dedicated students chahiye ☕️
@@chaiaurcode ji sirr chai aur aap (perfect combo)😂
@@broke_codez mujhe nhi samjha... ki sir ko phir se video record kyo karna pada... pichle wale mei kya issue aaya tha
@@LearnerAbhi21
Hy everyone, i tell you sir recorded half video in english and half in hindi so its reason for re recorded video
Sir Error A Raha MEra (bad option: --exprimental-json-modules)@@chaiaurcode
Two important points about database connectivity:
1. When connecting to databases, handling potential data-not-found scenarios is essential. Employ try/catch blocks or promises to manage errors or we can also use promises.
key to remember : ( wrap in try-catch )
2. Database operations involve latency, and traditional synchronous code can lead to blocking, where the program waits for the database query to complete before moving on. So, we should async/await which allows for non-blocking execution, enabling the program to continue with other tasks while waiting for the database response.
key to remember : ( always remember the database is in another continent, so use async await)
Thank u for inform that 🤗
Hye soniya , just now I have saw your linkdin profile. Could you learned your backend from this series? Because now I am learning by backend from this series.
@@Suryakant0708 mujhe nhi samjha... ki sir ko phir se video record kyo karna pada... pichle wale mei kya issue aaya tha
Error A Raha MEra (bad option: --exprimental-json-modules)
package.json mei -r dotenv/config YAha tk likho
# Connecting database in MERN with debugging
- Created MongoDb Atlas account.
- Created a Database and connect I.P Address to access database from anywhere.
- Used `dotenv , mongoose , express` packages.
- Two important points about database connectivity:
1. When connecting to databases, handling potential data-not-found scenarios is essential. Employ try/catch blocks or promises to manage errors or we can also use promises.
- key to remember : ( wrap in try-catch )
2. Database operations involve latency, and traditional synchronous code can lead to blocking, where the program waits for the database query to complete before moving on. So, we should async/await which allows for non-blocking execution, enabling the program to continue with other tasks while waiting for the database response.
- key to remember : ( always remember the database is in another continent, so use async await)
- Used two approach to connect the database - 1. In Index File, 2. In Seprate DB file
- Assignments -
- console log `connectionInstance`
- Read more about process.exit code
Thanks looking for this only
Hello ayush , actually I am facing issue while connecting to database . I followed all the steps along with the sir but i am getting an error saying "MONGODB connection error MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted" . I literally tried everything possible but still not able to resolve it . Please help me resolve this issue
@@riya2448 you have to global assign ip address 0.0.0.0/0 to you mongodb cluster.
@@riya2448 Now your error get resolve ?? : if not kindly tell me , Where you are facing this issue , is that after running (console.log(connectionInstance)) or while doing Setup of MongoDB, Kindly breakdown the problem .
@@SKD14344AK nope the same error message is popping again and again. The error is coming after running npm run dev. I have added the Ip address but it is not able to connect
We cannot just use the phrase THANK YOU for the kind of content you are giving.
Worked for almost 2 years in a mnc then also I think I could not learn so much which you have taught through your videos.
Agr koi itna indepth ja kr production level prha sakta hai to wo ap hi ho Sir. Huge respect and love from Pakistan
love from Lahore
Bhai Pakistan me bhi study hoti hai
@@VikasKumar-bf5wu Q bhai india me jahil rehty hai kia ?
I have never seen this type of Data base connection Lecture ever. This is GOD Level. This was a great help. Thanks sir.
The way you explain things is on whole different level ❤
It's been 3 days i started this series and got soo much clarity in almost everything you taught.
Thank you so much sir!❤🙏
I would say that this is the best backend series in RUclips right now with industry knowledge Thank you for this
Sir you're a gem of teacher, I request you to please complete this series. We will make sure to compete all your targets of likes and comments.
connectionInstance is an object with 53 properties which are
'connections object',
'nextConnectionId number',
'models object',
'events object',
'__driver object',
'options object',
'_pluralize function',
'Schema function',
'model function',
'plugins object',
'default object',
'mongoose object',
'cast function',
'STATES object',
'setDriver function',
'set function',
'get function',
'createConnection function',
'connect function',
'disconnect function',
'startSession function',
'pluralize function',
'deleteModel function',
'modelNames function',
'plugin function',
'version string',
'Mongoose function',
'SchemaType function',
'SchemaTypes object',
'VirtualType function',
'Types object',
'Query function',
'Model function',
'Document function',
'ObjectId function',
'isValidObjectId function',
'isObjectIdOrHexString function',
'syncIndexes function',
'Decimal128 function',
'Mixed function',
'Date function',
'Number function',
'Error function',
'MongooseError function',
'now function',
'CastError function',
'SchemaTypeOptions function',
'mongo object',
'mquery function',
'sanitizeFilter function',
'trusted function',
'skipMiddlewareFunction function',
'overwriteMiddlewareResult function'
yehi dhudne aaya tha milggya thanku
thnx
ha toh woh connectionInstance.connections.host nahi hoga?
Isme connectionInstance ke liye phir connections.host kaha he phir...kon se object me he
"aanand hi aajata hai jab sab samajh aajata hai" 🙏 Thank you sir .
Hats off to you Sir, You are reallly helping. Every video of yours is great. I haven't watched all of them but I am following your backend tutorials, tbh from last 4 hrs, practicing accordingly. The way you are teaching and telling every single thing what a student can think of ( kam se km mein ), every chota se chota doubt which I always faced earlier, is getting clearer. Now I know what I am writing.
Hats off to you!! I set a password with special characters and it was throwing errors when connecting to MongoDB, then I remembered that you told not to use special characters. Upon changing the password, the error got solved. I whole heartedly appreciate your efforts in providing such high quality content and in-depth content.
Brother, I thank you for your helpful comment
40min without any distraction...pata nhi chalta 40min kaise katam hogye
Thank u hitesh sir
Concepts in Hindi is so easy to absorb. It just feels like a story
DB is another continent, hence use promises or try-catch with async-await whenever you are connecting to any database, thanks Hitesh Sir for teaching with this much clarity!
as described in video for setup of dotenv config is not working in node 20+ versions so, --> we can simply include - import {} from 'dotenv/config' at the top of the src/index.js file and by this we can avoid the require experimental module configuration inside the package manager.
This works because of how ES6 modules imports modules. Before doing anything else in a file (say index.js) it does all the imports first. It does a depth first traversal of these imports, executing any code inside it. If we import dotenv first, it will execute config and add any env variables before doing anything else in the code.
thanks man!
He is the only teacher jis ka course agar main chalu krta hu toh hamesha pura khatam bhi krta hu! ty sir!😊
after waisting 1 hour and watching several i found this video and this video help me to connect my db in 7 min what a helpful video
congratulations on 100k ...soon you will complete your next milestone 500k and then 1million and so on...your teaching style is very unique and different...i am 100% sure that on youtube no one give this level of knowledge....we are very lucky that we are in the ERA of Hitesh sir💯
best part is - "Error ko read krna sbse important hai "(timestamp : 35:20)
sir ke hrr video me 1 na 1 line to jarur hi milegi jo coding to assan(easy) bnayegi 🙏
❤
Since Node v20.6.0, node is supporting env file without any 3rd party library (dotenv). You have to just add --env-file in your script tag in package.json. So, your script tag will look like:
"scripts": {
"start": "node --env-file=.env src/index.js",
"dev": "nodemon --env-file=.env src/index.js"
}
thanks
Thanks bro . Much appreciated
thanks for the info !
bro thank you so much, yr 2 din ho gye the erro resolve nhi hua, aaj mei ye playlist leave krne wala tha sirf is error ki waja se, thanks yr, aapne ye solution kahan se nikala, khud kra he ya source se? and again thanks for ur comment bro ♥
Bro really appriciate your help....Its a real problem that I am facing from a long time...What I am doing is: cd src, then node --env-file=.env index.js, which is giving error. Just adding the src/index.js and running it from the root directory solves it. Really funny, but thanks bro.
sir no words for you teaching. the way you explained first IIFI , then async then try/catch .. just wow. maza agaya sir.
The best backend series i have watched so far.. ☕☕♥
Congratulations for 100K ❤
00:05 Learning how to connect a database in MERN
01:58 Connect database in MERN with debugging
06:22 To connect to the MongoDB database in the MERN stack with debugging, you need to allow IP address access, have the correct ID password, and the URL.
08:20 Connect database in MERN with debugging
12:08 Two approaches to connect database in MERN
14:24 Mongoose is used to connect to the database
18:14 Connect database in MERN with debugging
19:59 Connecting the database in MERN with proper error handling
23:21 Connect database in MERN with debugging
25:01 Handle connection errors and exit the process if needed.
28:27 Connecting database in MERN
30:34 Set up environment variables in the index file for consistent code
34:09 Troubleshooting database import issues in the MERN stack
35:49 Successfully connected the database
39:07 Learned how to connect database in MERN
40:54 Connecting a database in MERN with debugging
Aapki comment hitesh sir ne LinkedIn pr share kiya
Sirrrrr, bht pyari video hai. Abi tk bht baar connect kia hai db single line code likh ke. lekin jo aapne ye bde ache se smjaya hai 🙌. " DB is always is another continent " kbi ni bhule ga SIr. ❤
Ye 6 lakh likes mhuje hi dika rhe hai ya sabko dekh rhe hai 🧐🧐🧐🧐
only you
♥️
No it's only six thousand
One imporatant thnk to take away from this video is -
Read the error, it is important to read the error, inspite of doing just chatGpt or stack-overflow.
Very motivational for be the engineer.
one important is just install the mongodb extension in vs code, and while connection in mongodb check for vs code connection option, and ready to boom the mongodb.
Sir we are lucky to have a teacher like you, luckily my friend suggested about you I must thank him ☺
thanku so much for this backend we also want a full mernstack ...we can learn frontend and backend but we want a proper guideline through you in which you actually teach us the approach so that we can make projects by our own
Thanks sir aapi video se confidence bahut jyada Aata Hai or aapki video ko digest karne mein time Bhi lag Jaate Hain
This course offers top-notch content that even surpasses paid courses out there. thankyou sir for providing this for free to us .
Bhaiya jitna thanku bolu utna kam pdega aapke liye, pata nhi aap itna efforts humare liye kyu laga rhe ho but please kabhi piche mat hatna ,hume aap jaise logo ki bohot jrurat hai ,jjisme koi ghamand aur lalach naa ho , mai try karunga ki mai bhhi aage jaake aapke jaisa banu , logo me knowledge baatu and batau ki maine hitesh bhaiya se sikha hai ye
part time me reels nahi comment scroll karne ka sokh hai 🤣🤣 to beshak hame bhi aise parttime work dene me maja ata hai karte rahiye comment ko scroll ,
and thanks for this valuable content , ab kya hi bole jata jate amzing bol deta hu ❤❤
Sir you are great....Despite the views count on your series you are still committed to teach with full enthusiasm...Kudos👏👏👏👏
The way you explain is just another level sir, i watched this video 2times. Now my concepts about database is so clear. So much knowledge in these videos.
Thank you sir ❤
Radhe Radhe... Watching this lecture on 25 - 10 - 24.
Sir, your way of teaching and knowledge is totally different from every teacher on RUclips
Nice Playlist .It is Difficult for me to understand your lecture😁😁 but i know it is beneficial for me .Thanks a lot
tankyou sir,sai kah rhe ho aap 2lakhs ka course kiya but smjh yehi se arha h, waiting for your top notch course :)
🤗☕️
Sir thanks a lot . Itna in depth content to udemy py bhi nai milta sir
thanks for your hard work for us yeh cheezain hmain compnay main seekhtay seekhtay 3 sy 4 months lag jaty but apki yeh series too best hain ab aik beginner level ka developer bhi Well structured and fully optimized web app bnany k qabil hoo jaye ga yeh series dekh k.....
Again a Large Bundle of thanks for your efforts
01:58 Connect database in MERN with debugging
06:22 To connect to the MongoDB database in the MERN stack with debugging, you need to allow IP address access, have the correct ID password, and the URL.
08:20 Connect database in MERN with debugging
12:08 Two approaches to connect database in MERN
14:24 Mongoose is used to connect to the database
18:14 Connect database in MERN with debugging
19:59 Connecting the database in MERN with proper error handling
23:21 Connect database in MERN with debugging
25:01 Handle connection errors and exit the process if needed.
28:27 Connecting database in MERN
30:34 Set up environment variables in the index file for consistent code
34:09 Troubleshooting database import issues in the MERN stack
35:49 Successfully connected the database
39:07 Learned how to connect database in MERN
40:54 Connecting a database in MERN with debugging
Idk what is people's problem that thay cant even like this helpful video i really want you to grow even more ❤❤ i cant even watch 5min of video of other youtubers on backend they make me sleep while here i watch hours of bideos and dont even realize just love you and your way of teaching 💗😊😊
You might find my comment funny but I didn't understand anything in this video yet I watched it till the end.😅 I'm going to start a new role as an associate functional consultant and I thought this would be something related to SQL and it's backend communication so I started watching it..😅
You're the teacher who deserves millions of views and likes!♥️
sir watching your video after watching the basic video of piyush garg bhaiya and your video is like the cherry on the top his video has perfect for basics and you video takes that basics in advance
love your dedication to re record the whole video to maintain the quality that we've come to know and love.
Best explanation of every topic. Thank you sir. And one more thing 'Database is always in another continent' ...
Now completed 7th video i understand all videos easily ❤
Finished this lecture on the last day of '23 and I can happily say that ki mera MongoDB ka darr almost khatam ho gaya..!
Really grateful for this series...🤍
Thank You so much Hitesh Sir and a very Happy New Year...💫
Itna acha detail me to aap hi padhate ho, dusre YT channel wale to Mongooes padhna shuru hi mongooes.connect se karte hai......Hats off and much appreciate your effort.
Thanks a ton 😊☕️
sir your dedicating toward delivering quality content is unmatchable.thanks a lot
Database is in another continent, but Hitesh sir is in our continent.
Thank you so much for this wonderful course ♥
sir jiiii apse padhne ke baad tho experience job role pe bi apply kia jaa skta . soo deep content of such highlevel knowledge just free ! op hitesh sir
This level of deep knowledge you got from doing work for so many years and now you giving it to community for free of cost to do this type of efforts are not that easy it is difficult for you also but although you are giving too much to the community and as you said in the podcast with Ranveer you will definitely bring new revolution in the tech community I believe in you sir keep going whole community is with you. Thank you too give this production grade level knowledge that no one talk in current market. You are great lots of love from Mehsana, Gujarat❤🙌☺.
this concept required two times watching + coding for better understanding
I was studying mongodb for first time after completion of 39min I feel confident about mongodb, thanks alot hitesh sir 🍵💌❤(most important thing : database durse continent me hai)😁😁
La jawab series for backend development. Love you sir ji
Best teacher i have seen in my life
Your teaching way is simple and advance. Hope You reach at your desire place
thanku bhai aapne double mehnt krne ke liya 😅😅💞💞
Learning From this series with 100% focus and dedication. completed at 9/March/2024 1:44pm
Sir aapke experiences sun na or aapki harr ek topic ko in depth mein samzhana personally I love it👌
Day 4 of Learning Backend with Hitesh Sir... So far bohot mazzaa aaya....😁
Amazing video. Explanation on how to handle error in DB connection was well explained. Thanks for the insights and sharing experience.
This free course is better than many premium courses
the content 🦾 , the educator 🦾, kahin esa content nahi milega jesa yahan hen
Recognizing Hitesh Sir's role in #chaiaurcode #backenddevelopment is commendable. Being grateful to teachers like him who shape our learning journeys is valuable
Just another great explanation on this series 🤩
if someone getting mongodb connection error, then
we don't need import dotenv in new node versions
we just have to change package.json setting to
"dev": "nodemon --env-file=.env src/index.js"
and if you are still getting error connection then check your password (exclude special character as Hitesh sir said) (actually experienced this issue)
Happy coding ^_^
Completed javascript course ✅ Completed Chai aur React ✅❤ Now here overcoming my fears 🙏.Thank you Hitesh Sir for this pure gold teachings and helping us become what we dream to be...
thankyou so much sir for guiding us on this journey and making backend development so clear🙏🙌
It's always a pleasure learning from you sir. The way you teach is just pure talent. Love you sir. ❣❣
Chai aur code is India's number one RUclips channel ❤❤
Great tutorial, after starting this backend tutorial i don't like frontend any more. Keep up the good work.
In the garden of education, you are the rare and precious bloom that makes it a place of beauty and growth. Thank you for cultivating a love for learning in all of us🥰
This is the best Backend series on youtube!!
It's wonderful that you recognize and appreciate Hitesh Sir's contributions to #chaiaurcode #backenddevelopment. Expressing gratitude to those who have positively impacted our lives is always a meaningful gesture.
It's wonderful that you recognize and appreciate Hitesh Sir's contributions to #chaiaurcode #backenddevelopment.
tip: read about process in node, process.exit() was discussed by HC in this video
We all are very lucky to learn from you Sir
The explanation was the best. It was now so easy for me to connect the db
easiest explanation for database connection.😄😄😄😄
00:40 salute to you for making videos again for us 🙌🏻
Sir ji jub se aapko jaanta hu tub se best teacher ho aap ✨
Database is present in another continent that's why it takes time 💯💯♥️♥️
just 2 words , BEST SERIES , SIR
Very grateful of your supports and how much learning you gave to us❤❤
Most professional way of teaching, love and support hitesh sir for giving us free knowledge and technology experience
Sir your teaching style is amazing
Sir ye video mai aaj 4 months bad dekh raha hu aur hamare chanel ke 236k subscriber hai aaj ki date mai... Keep growing sir ji!!!!
How to solve this error?MONGODB Connection Error: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
at new ConnectionString (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend
ode_modules\mongodb-connection-string-url\lib\index.js:86:19)
at parseOptions (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend
ode_modules\mongodb\lib\connection_string.js:186:17)
at new MongoClient (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend
ode_modules\mongodb\lib\mongo_client.js:51:63)
at NativeConnection.createClient (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend
ode_modules\mongoose\lib\drivers
ode-mongodb-native\connection.js:293:14)
at NativeConnection.openUri (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend
ode_modules\mongoose\lib\connection.js:801:34)
at Mongoose.connect (C:\Users\Govind Mishra\OneDrive\Desktop\WebDev\Chai Aur Backend
ode_modules\mongoose\lib\mongoose.js:404:15)
at connectDB (file:///C:/Users/Govind%20Mishra/OneDrive/Desktop/WebDev/Chai%20Aur%20Backend/src/db/index.js:6:47)
at file:///C:/Users/Govind%20Mishra/OneDrive/Desktop/WebDev/Chai%20Aur%20Backend/src/index.js:12:1
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
[nodemon] app crashed - waiting for file changes before starting...
Aap bhut mehnat karte hai sir. Thank you so so much
Best teacher on the internet.
hitesh bhau tum bahut badiya kam krte ho meri taraf se ek jadu ki jappi
Best video for backend on youtube
Thanks a lot sir for this backend tutorial now I learnt that how to connect database like a professional way
Sir Now I love to spend my weekend with You.
Speacially Haan Ji shuru karte hai.