18 lines
340 B
Bash
18 lines
340 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
export MYSQL_PWD=root
|
||
|
|
||
|
mysql_import() {
|
||
|
FILE=$1
|
||
|
echo "[INFO] -> Imported $FILE"
|
||
|
mysql -u root --comments -f < "$FILE"
|
||
|
}
|
||
|
|
||
|
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"
|