-
Notifications
You must be signed in to change notification settings - Fork 7
Container debugging
HariniSureshS edited this page May 24, 2020
·
5 revisions
-
Find the container id for mysql
docker ps
-
Exec into container
docker exec -it <mysql-container-id> bash
-
Access database
mysql -u root -p
Enter root on password prompt
From here all tables and databases can be accessed
- Find the container id and name for mongoDB
docker ps
2.Exec into container
docker exec -it <mongo-container-name> bash
- Access database
mongo
show dbs
use stackbox