

f, -fields=* comma separated list of field names (required for exporting CSV) e.g. uri=mongodb-uri mongodb uri connection string gssapiHostName= hostname to use when authenticating using GSSAPI/Kerberos (default: ) gssapiServiceName= service name to use when authenticating using GSSAPI/Kerberos (default: mongodb) awsSessionToken= session token to authenticate via AWS IAM authenticationMechanism= authentication mechanism to use authenticationDatabase= database that holds the user's credentials p, -password= password for authentication u, -username= username for authentication tlsInsecure bypass the validation for server's certificate chain and host name sslFIPSMode use FIPS mode of the installed openssl library pem file containing the certificate revocation list sslPEMKeyPassword= the password to decrypt the sslPEMKeyFile, if necessary pem file containing the certificate and key pem file containing the root certificate chain from the certificate authority ssl connect to a mongod or mongos that has ssl enabled port= server port (can also use -host hostname:port) h, -host= mongodb host to connect to (setname/host1,host2 for replica sets) v, -verbose= more detailed log output (include multiple times for more verbosity, e.g. Then I could use mongoimport and mongoexport $ mongoexport -helpĮxport data from MongoDB in CSV or JSON format.Ĭonnection strings must begin with mongodb:// or mongodb+srv://. I ran mongod with the command mongod -dbpath /data/db/.Įssentially, I’d like to know how the Hombrew and direct download installs differ and how my current setup might mess up future porjects, if at all.Install mongodb-database-tools brew install mongodb/brew/mongodb-database-tools Since then, I’ve created a /data/db directory from the root and run both mongod and mongo, including inserting some tests, and everything worked fine. Mkdir data & echo 'mongod -config /usr/local/etc/nf -dbpath=data -rest -httpinterface' > mongod.sh & chmod a+x mongod.sh &. I was really unclear what was happening in step 6, so I didn’t execute that last command:

I used this tutorial: How to Install the MEAN Stack on Mac OSX and followed the instructions up until step 5. I’ve already downloaded MongoDB using Homebrew, but a couple of tutorials I watched said that it’s better to download the tarball from the website.


I’m adding MongoDB to my dev environment, and I’m trying to figure out what the fundamental differences between installing with Homebrew and downloading the tarball from the website are.
