Skip to content

Commit

Permalink
Automatically stop the database
Browse files Browse the repository at this point in the history
When done with demo, we can stop it.
  • Loading branch information
dadoonet committed Jun 27, 2024
1 parent 832c8e9 commit 2876d35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ docker rm legacy-mysql
docker run --name legacy-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=person -d mysql:$MYSQL_VERSION --mysql-native-password=ON
docker logs -f legacy-mysql

# Stop the database when done
docker stop legacy-mysql
docker rm legacy-mysql

0 comments on commit 2876d35

Please sign in to comment.