Database Reference
In-Depth Information
Table 2-2. Basic Commands within the MongoDB Shell
Command
Function
show dbs
Shows the names of the available databases.
show collections
Shows the collections in the current database.
show users
Shows the users in the current database.
use <db name>
Sets the current database to <db name> .
Tip
You can get a full list of commands by typing the help command in the MongoDB shell.
Installing Additional Drivers
You might think that you are ready to take on the world now that you have set up
MongoDB and know how to use its shell. That's partially true; however, you probably
want to use your preferred programming language rather than the shell when querying
or otherwise manipulating the MongoDB database. 10gen offers multiple official drivers,
and many more are offered in the community that let you do precisely that. For example,
drivers for the following programming languages can be found on the MongoDB website:
C
C++
C#
Erlang
Go
Java
JavaScript
Node.js
Perl
PHP
Python
Ruby
Scala
In this section, you will learn how to implement MongoDB support for two of the
more popular programming languages in use today: PHP and Python.
 
 
Search WWH ::




Custom Search