Commit ea474108 authored by tywldx's avatar tywldx

test

parent fc668fba
...@@ -3,8 +3,9 @@ dbs=`curl http://192.168.4.3:10088/config_server/get_db_config/all/name` ...@@ -3,8 +3,9 @@ dbs=`curl http://192.168.4.3:10088/config_server/get_db_config/all/name`
for db in $dbs for db in $dbs
do do
sql_command=`curl http://192.168.4.3:10088/config_server/get_db_dump_command/${db}` sql_command=`curl http://192.168.4.3:10088/config_server/get_db_dump_command/${db}`
echo "mysqldump $sql_command > /tmp/${db}.sql"
cmd="mysqldump $sql_command > /tmp/${db}.sql" cmd="mysqldump $sql_command > /tmp/${db}.sql"
echo "$cmd"
$cmd $cmd
mysql -h 192.168.6.2 -P 3306 -uqa -pqatest db < /tmp/${db}.sql mysql -h 192.168.6.2 -P 3306 -uqa -pqatest db < /tmp/${db}.sql
done 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