49 lines
2.8 KiB
Plaintext
49 lines
2.8 KiB
Plaintext
========================================check combine data=========================================
|
|
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_836 -e"select count(1),server_id from user group by server_id;"
|
|
==========================================step 1===============================================
|
|
10.10.6.199-200
|
|
python wjtx.py changestatus -m maintain -o add -s 836-839
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_836 >legend_836.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_837 >legend_837.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_838 >legend_838.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_839 >legend_839.sql
|
|
|
|
python wjtx.py initdb -s 836
|
|
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_836 -e"source all.sql"
|
|
|
|
python import_redis.py 10.10.6.199 6381 out/game_redis.script
|
|
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
|
close 10.10.6.200
|
|
python wjtx.py changestatus -m maintain -o remove -s 836-839
|
|
==========================================step 2===============================================
|
|
10.10.6.201-202
|
|
python wjtx.py changestatus -m maintain -o add -s 840-843
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_840 >legend_840.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_841 >legend_841.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_842 >legend_842.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_843 >legend_843.sql
|
|
|
|
python wjtx.py initdb -s 840
|
|
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_840 -e"source all.sql"
|
|
|
|
python import_redis.py 10.10.6.201 6381 out/game_redis.script
|
|
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
|
close 10.10.6.202
|
|
python wjtx.py changestatus -m maintain -o remove -s 840-843
|
|
==========================================step 3===============================================
|
|
10.10.6.185,191,197
|
|
python wjtx.py changestatus -m maintain -o add -s 808-835
|
|
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_820 >legend_820.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_832 >legend_832.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 820
|
|
redis-cli -h 10.10.6.4 hdel hefu_info 832
|
|
close 10.10.6.191,197
|
|
python wjtx.py changestatus -m maintain -o remove -s 808-835
|