Solve mongodb not showing or missing in services

Solve mongodb not showing or missing in services


Solve mongodb not showing or missing in services

How to solve mongodb not showing or missing in services is shown


Content

0.24 -> hey hello everyone in this video i will  be showing you how to solve the problem  
3.92 -> mongodb service is not showing or missing in  the services dialog box so as you can see here  
8.72 -> i am not having mongodb mongodb is "mo" okay i  have mi and my okay i'm not having mo over here  
15.6 -> so it's really simple to solve this problem so  actually like this is the single command that  
20 -> you want to run to get the service but you have  to also have here two paths between these double  
25.6 -> quotes okay between these double quotes okay so  i will show you what are these parts okay first  
30.8 -> so first thing what you do is you need to go to  the folder where you have installed your mongodb  
35.44 -> server okay so by default the path is C program  files and you'll be having mongodb server 4.4 and  
47.36 -> the first path is you need to go to data okay  so this is going to be our first path so just  
54.24 -> copy this full path and go here just paste  it between these two double quotes okay  
61.68 -> so this will come over here this  is the path that i have added now  
65.2 -> and our second path will come over here so for  the second path what you do is just come back  
71.04 -> a folder you will be having this bin right just  click on bin just copy this path and go over here  
79.76 -> and just paste it within these double quotes okay  just paste it and here is it bin and you will be  
85.04 -> also adding another one particular file over here  which is going to be slash mongod.log okay dot log  
94.96 -> so you're just going to add this file over here  so i think you can see this path or let maybe  
101.36 -> let me just zoom it a bit okay i think this now  makes sense to you so this is the first path okay  
108.16 -> data and this is the second path so i would  recommend you to manually just go to the folder  
114.8 -> and get your path and rather than copying it from  here because sometimes your mongodb server version  
120 -> can change so you have to just specify the server  version that you are having i am having here 4.4  
125.68 -> that's why i'm putting here 4.4 so just put  your own version okay what you're going to  
129.28 -> do is you're just going to copy this full path  copy it and now i will also show you my still  
134.72 -> my mongodb is not present okay it's not in the  services just go to start type cmd and click here  
142.4 -> run as administrator okay really important  thing you have to run it as administrator  
147.52 -> so it'll ask you to allow to make changes  to your device just click yes and you'll be  
153.28 -> getting your command prompt in the administrator  mode so just paste it and just hit enter okay
164.16 -> so that's it we are done sometimes it will it  will show some text over here and sometimes it  
168 -> may won't show but if you aren't getting any  error that's well and good so once you're done  
172.56 -> with the thing you will be going to services  but nothing would have changed you we won't be  
176.96 -> having here mongodb but the twist is that  just close it and now again open services
187.68 -> and if you just now go to m we will be having  mongodb okay and just start the service now as  
197.12 -> you can see our mongodb server service is  running now and now i will just go to the  
203.76 -> normal command prompt okay and now  i will just go and type mongo okay
212.4 -> and this time i will be getting the  mongodb shell command prompt itself  
216.4 -> so i can just run any mongodb commands it will  just work in case if you're still getting many  
220.96 -> problems what you need to do is you just go to  start and type environmental variables just open  
227.44 -> and go to your environmental variables and user  variables or system variables you're just going  
232.48 -> to go to path okay just click edit and you know to  have this mongodb server bin path over here okay  
239.04 -> so i think these are some of the ways  you can solve this problem and i hope  
242.32 -> you found this video useful i have  also done many other videos in c  
244.96 -> c plus plus java python as well as sql  queries as far as interview questions  
249.92 -> so do check other videos of my channel  subscribe and support me thanks for watching

Source: https://www.youtube.com/watch?v=OCSOl6UIxCI