2019-04-03 08:29:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export MYSQL_PWD=root
|
|
|
|
|
|
|
|
mysql_import() {
|
|
|
|
FILE=$1
|
2019-07-25 15:35:51 +00:00
|
|
|
echo "[INFO] -> Importing $FILE"
|
2019-06-13 11:08:11 +00:00
|
|
|
mysql -u root --default-character-set=utf8 --comments -f < "$FILE"
|
2019-04-03 08:29:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mysql_import dump/structure.sql
|
|
|
|
mysql_import dump/mysqlPlugins.sql
|
|
|
|
mysql_import dump/dumpedFixtures.sql
|
|
|
|
import/import-changes.sh
|
|
|
|
mysql_import dump/fixtures.sql
|
|
|
|
|
|
|
|
echo "[INFO] -> Import finished"
|