myt/server/docker-import.sh

7 lines
148 B
Bash
Raw Normal View History

#!/bin/bash
FILE="$1.sql"
echo "[LOG] -> Importing $FILE"
export MYSQL_PWD=root
mysql -u root --default-character-set=utf8 --comments -f < "$FILE"