January 2018
Intermediate to advanced
414 pages
10h 29m
English
We have now installed a MongoDB server that can handle several databases, but we are going to need one for our examples.
First, let's find out what databases exist using the show dbs command:
> show dbsadmin 0.000GBlocal 0.000GB
By default, there are two databases on our server: the admin database and the local database; these are system databases that Mongo requires to function:
Those two databases cannot be deleted, so we need to create our own, but first, we need to inform the client that we are going to use a different database using the use command:
> use microservices ...
Read now
Unlock full access