My Database Systems Studies using the Database Management Systems (DBMS):
This instruction was made to my studies and I will be more than happy if it can also help my colleagues as well. The process described bellow was based on a Fedora Linux environment, I tried to make it as generic as possible, but even so, it might be different if you run it on a different operating system.
-
Install Docker Infrastructure (If you do not already have it installed):
- Install Docker: https://docs.docker.com/engine/install/
- Quick Links:
- Fedora Linux: https://docs.docker.com/engine/install/fedora/
- Ubuntu Linux: https://docs.docker.com/engine/install/ubuntu/
- Quick Links:
- Install Docker Compose: https://docs.docker.com/compose/install/
- Install Docker: https://docs.docker.com/engine/install/
-
Clone this Git repository into your machine by running the command bellow:
git clone https://github.com/acremonezi/Database-Systems-MySQL-MongoDB.git
-
Startup the databases containers by running the command bellow:
docker-compose up -d
Info: The databases storage data will be saved at
./data
-
Examples of others Docker Compose commands:
- To see the containers status:
docker-coompose ps
- To stop the containers:
docker-compose stop
- To list other commands available:
docker-compose --help
- To see the containers status:
-
Install a Database Management IDE such as:
- For SQL and NoSQL together: https://www.jetbrains.com/pt-br/datagrip/
- For SQL only: https://www.mysql.com/products/workbench/
- For NoSQL only: https://studio3t.com/
-
Connect the IDE above to the databases using the info bellow:
- Host:
localhost
or your computerIP address
- Ports:
- For MySQL:
3306
- For MongoDB:
27017
- For PostgreSQL:
5432
- For MySQL:
- User/Password: Please, have a look into the file:
docker-compose.yml
Info: If you intend to run it on a public environment instead of your laptop/desktop, please do not forget to change the databases passwords at the
docker-compose.yml
file. - Host:
-
Enjoy and have fun!
- Schema Design:
- Entity-Relationship Diagrams (ERD):