Mongodb command not recognized - mongodb

I am learning a mongodb tutorial and I'm new to it and I tried executing mongodb commands but the cmd is showing
C:\Users\paanc_ctx7xp6>mongod --version
'mongod' is not recognized as an internal or external command,
operable program or batch file.
although I added path variable it still isn't working. I even tried adding "" after bin but anything I have done isn't working at all , and I can't seem to get an answer because everyone is simply saying to edit path variable. Can someone please help me
path variable
cmd

Related

Installing files via Composer via Command Line | "'$' is not recognized as an internal or external command, operable program or batch file."

So I am attempting to install some files from Send Grid via Composer usind the CommandLine.
I am following a tutorial with the link here https://www.youtube.com/watch?v=fEobqi3N7zw
The guy in the video has no problem using Composer via the Command Line in the Windows Command Prompt, but when I input the command $ go_www, my PC whines and stamps it's feet, giving me the following line:
'$' is not recognized as an internal or external command,
operable program or batch file.
In a nutshell, why?
System Information:
Windows 10 64x
I have looked at other posts on here, to no avail, I have tried opening the Command Line too as System Administrator, but to avail. I have tried restarting the system, to no avail, I can confirmed I have composer installed into the correct directory, to no avail .
$ in a shell indicates the shell is not owned by a superuser, it is not part of the command. Try running go_www. Also, the video you linked seems to be using a bash shell, whereas you appear to be running a Windows command prompt from the error message you included in your question, which might be a problem too.
In any case, go_www is an alias the video author uses to quickly navigate to the folder of interest. Try manually navigating there using cd.

'sed' is not recognized as an internal or external command- ETHERMINT

Im having trouble following the tutorial for the node start on Ethermint.
After passing in the cmd: make install, i get the following error.
In my work computer, is not working, but in my personal computer is ?
What seems to be the issue ?
'sed' is not recognized as an internal or external command,
operable program or batch file.
process_begin: CreateProcess(NULL, which docker, ...) failed.
Makefile:29: pipe: Bad file descriptor
Makefile:187: *** missing separator. Stop.
I tried to install a windows version of "sed" but cant find a proper version.

Error 'mongodump' is not recognized as an internal or external command, operable program or batch file

I have read the documentation and followed the steps to run mongodump on windows machine, but still getting this error.
I tried to set the path using this command set path="C:\Program Files\MongoDB\Server\4.4\bin" and added the path in environmental variables but still getting the error. What should I do ?

I can only start the MongoDB shell from its directory, but I can't do it globally

As documentation says, I have to write Mongo in my shell to run the Mongo shell. However, It won't work!
On the other hand, If I go to its directory (program-files/mongoDB/Server/4.4/Bin) and I type .\mongo , it opens and works!
Is there a way I can just use it from any directory? I am constantly moving across files to use it and it gets very annoying. I already tried to run npm i -g mongo and did nothing.
Thanks!!
translated from Spanish:mongo: The term 'mongo' is not recognized as the name of a cmdlet, function, script file, or executable program. Check if you entered the name correctly or, if you included a path, check that the path is correct
and try again.
You need to add path for mongoDB in Environment variable. Visit below link to know more:
https://dangphongvanthanh.wordpress.com/2017/06/12/add-mongos-bin-folder-to-the-path-environment-variable/

How do I know which MongoDB version is installed by using the Command Line?

Without changing directory to \MongoDB\bin\, when I call:
mongod -v
I get:
'mongod' is not recognized as an internal or external command, operable
program or batch file.
When I call the same command from \bin\ it launches the server just like I'm calling:
mongod
It is the same case with 'mongo' and 'mongos'.
I added the \bin\ path to the environment variables thinking it will help but it didn't.
To clarify with an example, to get the version of Ruby, I can call:
ruby -v
Why can't I do the same with MongoDB?
First add location of MongoDB's bin folder to PATH env variable. This is required because it is the place where mongod.exe is stored.
For example, if MongoDB 4.0 is in your Program Files, add "C:\Program Files\MongoDB\Server\4.0\bin" to PATH for all system users.
Then try using :
mongod --version