September 2019
Intermediate to advanced
668 pages
15h 59m
English
To be able to run the database CLI tools, the Docker Compose exec command can be used.
The commands described in this section will be used when we get to the manual tests in the next section. Don't try to run them now; they will fail since we have no databases up and running yet!
To start the MongoDB CLI tool, mongo, inside the mongodb container, run the following command:
docker-compose exec mongodb mongo --quiet>
Enter exit to leave the mongo CLI.
To start the MySQL CLI tool, mysql, inside the mysql container and log in to review-db using the user created at startup, run the following command:
docker-compose exec mysql mysql -uuser -p review-dbmysql>