- #Install mongo shell only on ubuntu update
- #Install mongo shell only on ubuntu password
- #Install mongo shell only on ubuntu windows
#Install mongo shell only on ubuntu update
Update information that they would like updated every time they launch a shell. In the file, users can define variables, customize the mongo shell prompt, or mongorc.js file from the home directory of the user invoking
#Install mongo shell only on ubuntu windows
Versions of Windows mongo.exe earlier than 2.2.0 will save the. Note mongo does not recorded interaction related to authentication in the historyįile, including authenticate and db.addUser(). Use the -shell option to return to a shell after the file finishesįiles ~/.dbshell mongo maintains a history of commands in the. Specifies a JavaScript file to run and then exit. Separate the database name from the hostname using a / character. You may specify a remote database instance, with the resolvable hostname The above command will connect the mongo shell to the admin database on the local Specifies the "database address" of the database to connect to. All MongoDB programs and processes, including mongo, disable IPv6 ipv6 Enables IPv6 support that allows mongo to connect to the MongoDB instance using an Increases the verbosity of the output of the shell during the connection process. pem file using relative or absolute paths pem file that contains the certificate from the Certificate Authority. Only required if the certificate-key file is encrypted.
#Install mongo shell only on ubuntu password
Specifies the password to decrypt the root certificate chain specified by -sslPEMKeyFile. Required when using the -ssl option if the mongod or mongos has sslCAFile enabled without sslWeakCertificateValidation. pem file that contains both the SSL certificate and key. See /administration/ssl for more information about SSL and MongoDB. You can either compile MongoDB with SSL support or use the MongoDB SubscriberĮdition. Note The default distribution of MongoDB does not contain support for SSL. ssl Enable connection to a mongod or mongos that has SSL encryption. Information about Kerberos authentication.
See /tutorial/control-access-to-mongodb-with-kerberos-authentication for more The MongoDB Subscriber Edition, mongo also includes support for GSSAPI to handle MONGODB-CR, which is the MongoDB challenge/response authentication mechanism. By default, the authentication mechanism is More information about delegated authentication in MongoDB. See userSource, /reference/privilege-documents and /reference/user-privileges for The user's credentials, unless you specify -authenticationDatabase. Specifies the database that holds the user's (e.g -username) credentials.īy default, mongo assumes that the database name specified in the db address holds The mongod or mongos requires authentication. Without the -password option, mongo will prompt for a password interactively, if With the -username option to supply a username. Specifies a password to authenticate to the MongoDB instance. Password but the default database or the specified database do not requireĪuthentication, mongo will exit with an exception.
With the -password option to supply a password. Specifies a username to authenticate to the MongoDB instance. mongoĭoes not load its own environment when evaluating code: as a result many options of By default mongo will attempt to connect to a MongoDB process runningĮvaluates a JavaScript expression specified as an argument to this option. Specifies the host where the mongod or mongos is running to connect to as Specified mongo connects to mongod instances on port 27017, which is the default Specifies the port where the mongod or mongos instance is listening.
Silences output from the shell during the connection process. norc Prevents the shell from sourcing and evaluating ~/.mongorc.js on start up. Later, to connect toĪ database within the shell, see mongo-shell-new-connections. nodb Prevents the shell from connecting to any database instances. Shell prompt after the file finishes executing. Specify JavaScript on the command line, the -shell option provides the user with a Mongo command and specify a JavaScript file as an argument, or use -eval to SYNOPSIS mongo INTERFACE Options -shellĮnables the shell interface after evaluating a JavaScript file. Mongo shell and an overview of its usage. This document addresses the basic invocation of the mongo also provides a fully functional JavaScriptĮnvironment for use with a MongoDB. Interface for systems administrators as well as a way for developers to test queries and Provided by: mongodb-clients_2.6.10-0ubuntu1_amd64ĭESCRIPTION mongo is an interactive JavaScript shell interface to MongoDB, which provides a powerful