Install mongodb shell with Chocolatey – Windows 11
mongosh
Current Mongosh Log ID: 655443dea5099d66fb01846f
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.0.2
Using MongoDB: 4.2.8
Using Mongosh: 2.0.2
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
You can opt-out by running the disableTelemetry() command.
------
The server generated these startup warnings when booting
2023-11-14T18:51:29.066-0500:
2023-11-14T18:51:29.072-0500: ** WARNING: Access control is not enabled for the database.
2023-11-14T18:51:29.074-0500: ** Read and write access to data and configuration is unrestricted.
2023-11-14T18:51:29.081-0500:
2023-11-14T18:51:29.084-0500: ** WARNING: This server is bound to localhost.
2023-11-14T18:51:29.086-0500: ** Remote systems will be unable to connect to this server.
2023-11-14T18:51:29.089-0500: ** Start the server with --bind_ip <address> to specify which IP
2023-11-14T18:51:29.091-0500: ** addresses it should serve responses from, or with --bind_ip_all to
2023-11-14T18:51:29.092-0500: ** bind to all interfaces. If this behavior is desired, start the
2023-11-14T18:51:29.093-0500: ** server with --bind_ip 127.0.0.1 to disable this warning.
2023-11-14T18:51:29.094-0500:
------
Warning: Found ~/.mongorc.js, but not ~/.mongoshrc.js. ~/.mongorc.js will not be loaded.
You may want to copy or rename ~/.mongorc.js to ~/.mongoshrc.js.
Start mongodb shell
test> show databases
admin 40.00 KiB
blog 8.00 KiB
config 108.00 KiB
local 40.00 KiB