47 lines
2.7 KiB
Plaintext
47 lines
2.7 KiB
Plaintext
========================================check combine data=========================================
|
|
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_796 -e"select count(1),server_id from user group by server_id;"
|
|
==========================================step 1===============================================
|
|
10.10.6.179-180
|
|
python wjtx.py changestatus -m maintain -o add -s 796-799
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_796 >legend_796.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_797 >legend_797.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_798 >legend_798.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_799 >legend_799.sql
|
|
|
|
python wjtx.py initdb -s 796
|
|
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_796 -e"source all.sql"
|
|
|
|
python import_redis.py 10.10.6.179 6381 out/game_redis.script
|
|
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
|
close 10.10.6.180
|
|
python wjtx.py changestatus -m maintain -o remove -s 796-799
|
|
==========================================step 2===============================================
|
|
10.10.6.181,182
|
|
python wjtx.py changestatus -m maintain -o add -s 800-803
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_800 >legend_800.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_801 >legend_801.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_802 >legend_802.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_803 >legend_803.sql
|
|
|
|
python wjtx.py initdb -s 800
|
|
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_800 -e"source all.sql"
|
|
python import_redis.py 10.10.6.181 6381 out/game_redis.script
|
|
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
|
close 10.10.6.182
|
|
python wjtx.py changestatus -m maintain -o remove -s 800-803
|
|
=======================================step 3===============================================
|
|
10.10.6.175,177
|
|
python wjtx.py changestatus -m maintain -o add -s 788-795
|
|
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_788 >legend_788.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_792 >legend_792.sql
|
|
|
|
python wjtx.py initdb -s 788
|
|
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_788 -e"source all.sql"
|
|
python import_redis.py 10.10.6.175 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 788
|
|
redis-cli -h 10.10.6.4 hdel hefu_info 792
|
|
close 10.10.6.177
|
|
python wjtx.py changestatus -m maintain -o remove -s 788-795
|