Commit 332e285c authored by daidekun's avatar daidekun

hack bugs

parent 6886704a
# -------------------------------------------------------------------------------
# Filename: db_import.sh
# Revision: 1.1
# Date: 2017/02
# Author: dekun.dai
# Description: 导入基础数据
# Usage:used by ../deploy/database_sync.sh
# -------------------------------------------------------------------------------
database_name=$1
mysql_host=$2
mysql_user=$3
mysql_password=$4
db_sub_backup_folder=$5
cd $db_sub_backup_folder
for entry in "$search_dir"./*
do
echo "mysql -h $mysql_host -u qa -pqatest $database_name < $entry"
mysql -h $mysql_host -u$mysql_user -p$mysql_password $database_name < $entry
done
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment