myt/docker/docker-dump.sh

7 lines
162 B
Bash
Raw Normal View History

2020-11-14 01:38:56 +00:00
#!/bin/bash
export MYSQL_PWD=root
FILE="/docker-boot/$1.sql"
echo "[INFO] -> Importing $FILE"
mysql -u root --default-character-set=utf8 --comments -f < "$FILE"