Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created December 10, 2021 04:22
Show Gist options
  • Select an option

  • Save manakuro/66bb41e326328fda957bbe7c67a083cf to your computer and use it in GitHub Desktop.

Select an option

Save manakuro/66bb41e326328fda957bbe7c67a083cf to your computer and use it in GitHub Desktop.
#!/bin/bash
cd docker || exit
docker compose cp ./mysql_data/sql mysql:/var/lib/mysql/
docker compose exec mysql bash -c "mysql -uroot -proot < /var/lib/mysql/sql/reset_database.sql"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment