#!/bin/bash
echo "running create database 1 in the background"
mysql -u root -ppassword -h 127.0.0.1 -P 3317 <archback.sql &
echo "running create database 2 in the background"
mysql -u root -ppassword -h 127.0.0.1 -P 3316 <archback.sql &
echo "running create database 3 in the background"
mysql -u root -ppassword -h 127.0.0.1 -P 3315 <archback.sql &
wait
echo "backend databases created, creating frontend"
mysql -u root -ppassword -h 127.0.0.1 -P 3318 <archfront.sql
