Commit aafd51d1 authored by 智勇's avatar 智勇

up

parent a979e032
...@@ -70,7 +70,7 @@ function db_schema_sync() ...@@ -70,7 +70,7 @@ function db_schema_sync()
echo "--- Step 1: generate_config_file: $config_file_name ---" echo "--- Step 1: generate_config_file: $config_file_name ---"
echo "source infos: $source_db_host $source_db_user" echo "source infos: $source_db_host $source_db_user"
echo "target infos: $target_db_host $target_db_user" echo "target infos: $target_db_host $target_db_user"
echo "database_name is : $sync_db_name" echo "database_name is : $database"
echo "delete_business_data : $delete_business_data" echo "delete_business_data : $delete_business_data"
echo "use_cache : $use_cache" echo "use_cache : $use_cache"
...@@ -92,8 +92,9 @@ function db_schema_sync() ...@@ -92,8 +92,9 @@ function db_schema_sync()
echo "--- Step 4: sync schema: $database $target_db_host ---" echo "--- Step 4: sync schema: $database $target_db_host ---"
#sync_cmd="mss -conf ${config_file_name} -sync" #sync_cmd="mss -conf ${config_file_name} -sync"
echo "mss -conf ${config_file_name} -sync" echo "mss -conf ${config_file_name} -sync > /dev/null 2>&1"
mss -conf ${config_file_name} -sync mss -conf ${config_file_name} -sync > /dev/null 2>&1
echo "mysql-schema-sync result:$?"
} }
function run_sql_file() function run_sql_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