myt/server/docker-dump.sh

10 lines
190 B
Bash
Raw Normal View History

2020-11-14 01:38:56 +00:00
#!/bin/bash
FILE="$1.sql"
2020-12-02 07:35:26 +00:00
#if [ -f "$FILE" ]; then
echo "[LOG] -> Importing $FILE"
export MYSQL_PWD=root
mysql -u root --default-character-set=utf8 --comments -f < "$FILE"
2020-12-02 07:35:26 +00:00
#fi