It provides a Docker Compose setup for testing your Data Anonymization API tool with a MySQL database containing predefined databases, tables, and sample data.
-
Navigate to the project directory:
cd sql-test-data
-
Start the Docker Compose services:
docker-compose up --build --force-recreate
This command will download the necessary Docker images and build and spin the MySQL container along with necessary database, tables and records, etc.
-
Wait for a moment to allow the services to initialize.
-
Access your database using following credentials
- Host: localhost [127.0.0.1]
- Port: 3306
- Username: root
- Password: root_password
You can SQL admin page by clicking the following url
http://localhost:8080
You can loging and access all the tables and data by providing the above credentials
testdb
- Table 1:
customers
- Table 2:
orders
The predefined tables contain sample data for testing purposes.
To stop the services and remove the containers, run:
docker-compose down