2023-10-07 10:52:49 +02:00
|
|
|
#!/bin/bash
|
|
|
|
docker compose stop
|
|
|
|
gunzip dump/data.sql.gz
|
|
|
|
gunzip dump/district.sql.gz
|
2023-10-07 11:47:23 +02:00
|
|
|
cp dump/data.sql database/data.sql
|
|
|
|
cp dump/district.sql database/district.sql
|
2023-10-07 10:52:49 +02:00
|
|
|
cp config.sample.php config.php
|
|
|
|
docker compose up -d
|
2023-10-07 11:47:23 +02:00
|
|
|
docker exec -it unfallkarte-db mysqladmin -uroot -pgeheim create unfallstatistik
|
|
|
|
# docker exec -it unfallkarte-db mysql -uroot -pgeheim unfallstatistik < /var/lib/mysql/data.sql
|
|
|
|
# docker exec -it unfallkarte-db mysql -uroot -pgeheim unfallstatistik < /var/lib/myssql/district.sql
|
|
|
|
# Im Container source /var/lib/mysql/data.sql ausführen
|