salix/db/docker/docker-boot.sh

19 lines
381 B
Bash
Executable File

#!/bin/bash
cd /docker-boot
export MYSQL_PWD=root
mysql_import() {
FILE=$1
echo "[INFO] -> Importing $FILE"
mysql -u root --default-character-set=utf8 --comments -f < "$FILE"
}
mysql_import dump/structure.sql
mysql_import dump/mysqlPlugins.sql
mysql_import dump/dumpedFixtures.sql
./import-changes.sh
mysql_import dump/fixtures.sql
echo "[INFO] -> Import finished"