Set up MySQL for Prototype Pollution demo
mainTo demonstrate the Prototype Pollution vulnerability in TypeORM, you must run a MySQL server. It is recommended to use mysql:5 because it supports the native password mechanism used in this demo.
After starting the container, you must create a database named acme to host the application data.
# Start the MySQL container
docker run -p3306:3306 --rm --name mysqld -e MYSQL_ROOT_PASSWORD=root mysql:5
# Create the dummy database
# (Run this inside the mysql client)
create database acme;
# Access the MySQL client to run commands
docker exec -it mysqld mysql -uroot -p