mongodb installation in pc - mongodb

I install mongodp from its web but when its complete its not showing anything i can follow my teacher but in c mongodb 6.0 bin mongodb its not opened but in mongosh its work proper it show the version of mongodb and version of mongosh and show database als but i want to follow my teacher so it is necessary to open from bin. plz 😣 help please.
i want to open mongodb from bin but its not opened from bin but its work properly from mongosh. iwant to follow my teacher.
i reinstall mongodb and also delte from c but its not working. i repair it mongodb install repair option but the problem is not solved.

mongo binary is legacy shell and no longer shipped with server binaries. See for details. If you, for some reason, need it, you should download a server binaries < 6.0, like 5.0.14 from here. And just copy mongo binary from there (without the rest server binaries).

Related

Why is mongoimport.exe is gone from my package?

I'm a begineer at learning MongoDB. I had followed some course and installed windows mongodb enterprise edition package in the downloads section on MongoDB website. After installing and adding environment variables to PATH, I used mongoimport command. Then it said mongodb is not recognized as an internal or external command, operable program or batch file. But I could execute mongo command
I had checked C:\Program Files\MongoDB\Server\4.4\bin and the only are mongo.exe, mongod.exe, mongodecrypt.exe, mongoldap.exe, and mongos.exe. No others.
So, where can I find downloadable executable file or is there a way to install the rest of the addition tools/package (such as mongodump, mongoimport, mongoexport, and else) so I could do mongoimport?
I ran into the same issue myself. As of MongoDB 4.4, the database tools is now a separate installation for all platforms except Linux. You can find the instructions to install for your platform here.
I faced same issue. Please find below information might help you to solve your issue related to mongoimport.
The Database Tools are now separately versioned and installed as of the MongoDB 4.4 server release. These tools release independently from the MongoDB Server schedule enabling you to receive more frequent updates and leverage new features as soon as they are available. These include, among other things: mongodump, mongorestore, mongoimport, and mongoexport.
This is the download link for MongoDB Database Tools
In case of Windows installation, don't forget to add Database Tools folder to your path

Why MongoDB folder is not generated inside programs files after successfully installation at windows 10?

I am trying to install MongoDB inside my machine as a local , after install the installation exe of MongoDB but MongoDB folder did not generated even checked inside programs files and x86 also in both.
Please help me out what should i try to install it successfully.
See MongoDB 3.6.2 2008R2 Plus Not Installing - basically during install you need to uncheck the "Install compass" option for some reason. Not sure why, but installing without Compass works.

Mongo details are not showing in phpinfo() in windows

I am installing mongodb on my windows 7 PC. I have installed mongodb 3.0 along with the necessary drivers & tried starting mongo server, it is working well but when i open the localhost & check for the phpinfo page, it does not show me the details of mongo. I also am using Umongo client for database interaction where i am not able to create database manually. It is just because of this? Where is the problem?. How to resolve this?
Please read this document to add php_mongo.dll services in php 5.3 and later
For adding mongo db in php you need to add php_mongo.dll in your wamp directory
Example:
c:\wamp\bin\php\php5.5.12\ext
Document: https://docs.mongodb.org/ecosystem/drivers/php/

How do I update the mongodb binaries in my nitrous.io box to the 2.4.x versions?

I am taking the "mongodb for node.js" course and trying to import/restore data to my mongolab instance but I keep getting Auth err code 18 errors.
I can connect to any instance I create using the mongo --shell from the nitrous.io box and it works fine. So my connect string and env variables are correct. If I change the password when logging in to mongo shell it actually gives me the opportunity to put in the correct password. So I know the user authentication is proper.
I am confused as to why I still get Auth err code 18 errors when I try to use the supplied mongodump files.
I have also tried specifying individual .bson files and that gives the same error as well.
I am connecting to mongod version 2.4.6 but mongorestore is only 2.0.4 on the nitrous.io box. I wanted to update to the newer version and see if this is the problem. I have read other posts from other sites where this seemd to break in version 2.2.2. while importing using older versions of the binaries for restore.
it does not appear you(nitrous.io developers) leave a way to update or support mongodb versioning. Do you have a way I could update to mongodb v2.4.6?
also if you could add htop and bmon to your image that would be nice.
Nitrous has released a package manager dubbed autoparts which will allow you to install mongodb 2.4.6.
Autoparts requires you to have a Nitrous box on version "bran" or later. If you are on version "arya" then you will need to download the contents within your box (SCP or Nitrous Mac App), terminate the box, followed by creating a new box in order to upgrade.
Take a look at the README within the Github Repo for instructions on how to use autoparts:
https://github.com/action-io/autoparts
To install/update mongodb to the latest version, run the following command:
parts install mongodb
After the installation completes, run mongo in the console to check the version. You may need to restart the console if it is reporting an older version.

mongodb: how to upgrade db?

Hey I have mongodb which I have used for a long time. It's version is 1.2.2.
Now I have new server running centos 5.5. I know how to install mongodb on it.
It's version is 1.6.5.
I want to know how I can migrate my db files in /var/lib/mongo/ to 1.6.5?
It's just dbs and collections, no index files at all.
Is there any tools can easily do that for me?
Copy over the original database files to the new server and restart mongod on the new system.
It might be necessary to to start mongod with the --upgrade option in order to migrate existing database files to a new database format (has not changed since 1.4 but possibly between 1.2 and 1.6).
If you want to upgrade to the just released 1.8.0-rc0 detailed instructions are at http://www.mongodb.org/display/DOCS/Upgrading+to+1.8.0