========================================check combine data========================================= mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_852 -e"select count(1),server_id from user group by server_id;" ==========================================step 1=============================================== 10.10.6.207-208 python wjtx.py changestatus -m maintain -o add -s 852-855 mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_852 >legend_852.sql mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_853 >legend_853.sql mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_854 >legend_854.sql mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_855 >legend_855.sql python wjtx.py initdb -s 852 mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_852 -e"source all.sql" python import_redis.py 10.10.6.207 6381 out/game_redis.script python import_redis.py 10.10.6.4 6379 out/global_redis.script close 10.10.6.208 python wjtx.py changestatus -m maintain -o remove -s 852-855 ==========================================step 2=============================================== 10.10.6.209-210 python wjtx.py changestatus -m maintain -o add -s 856-859 mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_856 >legend_856.sql mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_857 >legend_857.sql mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_858 >legend_858.sql mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_859 >legend_859.sql python wjtx.py initdb -s 856 mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_856 -e"source all.sql" python import_redis.py 10.10.6.209 6381 out/game_redis.script python import_redis.py 10.10.6.4 6379 out/global_redis.script close 10.10.6.210 python wjtx.py changestatus -m maintain -o remove -s 856-859 ==========================================step 3=============================================== 10.10.6.185,199 python wjtx.py changestatus -m maintain -o add -s 808-843 mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_808 >legend_808.sql mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_836 >legend_836.sql python wjtx.py initdb -s 808 mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_808 -e"source all.sql" python import_redis.py 10.10.6.185 6381 out/game_redis.script python import_redis.py 10.10.6.4 6379 out/global_redis.script redis-cli -h 10.10.6.4 hdel hefu_info 808 redis-cli -h 10.10.6.4 hdel hefu_info 836 close 10.10.6.199 python wjtx.py changestatus -m maintain -o remove -s 808-843 ==========================================step 4=============================================== 10.10.6.203,205 python wjtx.py changestatus -m maintain -o add -s 844-851 mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_844 >legend_844.sql mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_848 >legend_848.sql python wjtx.py initdb -s 844 mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_844 -e"source all.sql" python import_redis.py 10.10.6.203 6381 out/game_redis.script python import_redis.py 10.10.6.4 6379 out/global_redis.script redis-cli -h 10.10.6.4 hdel hefu_info 844 redis-cli -h 10.10.6.4 hdel hefu_info 848 close 10.10.6.205 python wjtx.py changestatus -m maintain -o remove -s 844-851