Commit 9448fba6 authored by tywldx's avatar tywldx
parents 50353298 c589759d
......@@ -35,17 +35,17 @@ function db_schema_sync()
echo "sh $work_dir/db_gen_config.sh $source_db_host $source_db_user $source_db_pwd $target_db_host $target_db_user $target_db_pwd $database $config_file_name $db_backup_sub_folders false 3306"
sh $work_dir/db_gen_config.sh $source_db_host $source_db_user $source_db_pwd $target_db_host $target_db_user $target_db_pwd $database $config_file_name $db_backup_sub_folders false 3306
echo "--- Step 3: sync schema: $database $target_db_host ---"
#sync_cmd="mss -conf ${config_file_name} -sync"
echo "mss -conf ${config_file_name} -sync > /dev/null"
mss -conf ${config_file_name} -sync > /dev/null
echo "mysql-schema-sync result:$?"
echo "--- Step 4: import basic data from backup file: $database $db_backup_sub_folders ---"
sh $work_dir/db_import.sh $database $target_db_host $db_backup_sub_folders $target_db_port
# echo "--- Step 3: sync schema: $database $target_db_host ---"
# #sync_cmd="mss -conf ${config_file_name} -sync"
# echo "mss -conf ${config_file_name} -sync > /dev/null"
# mss -conf ${config_file_name} -sync > /dev/null
# echo "mysql-schema-sync result:$?"
# echo "--- Step 4: import basic data from backup file: $database $db_backup_sub_folders ---"
# sh $work_dir/db_import.sh $database $target_db_host $db_backup_sub_folders $target_db_port
}
database_list=`grep database_list $work_dir/config/db_config | cut -d "=" -f 2`
database_list=`curl -s http://192.168.4.3:10088/config_server/get_db_config/all/name`
echo "database_list:${database_list}"
for db_name in $database_list
......
......@@ -64,6 +64,8 @@ module.exports = {
user_credit : new db('','9001','','',''),
workflow : new db('192.168.4.80','3307','','','dec_out out_config out_config_value params_value var_detail var_group'),
xyqb_app : new db('','3307','','','activities app_banners app_config app_versions banners blanknote_entries credit_questions hot_games loan_banners loan_questions migrations sharings widgets js_patch upgrade_version'),
xyqb_btzt : new db('','9002','','','zt_channel zt_fund zt_fund_channel zt_fund_credit zt_fund_term'),
......
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