2022-04-06 16:57:18 +08:00

46 lines
2.7 KiB
Plaintext

========================================check combine data=========================================
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_780 -e"select count(1),server_id from user group by server_id;"
==========================================step 1===============================================
10.10.6.171-172
python wjtx.py changestatus -m maintain -o add -s 780-783
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_780 >legend_780.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_781 >legend_781.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_782 >legend_782.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_783 >legend_783.sql
python wjtx.py initdb -s 780
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_780 -e"source all.sql"
python import_redis.py 10.10.6.171 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.172
python wjtx.py changestatus -m maintain -o remove -s 780-783
==========================================step 2===============================================
10.10.6.173,174
python wjtx.py changestatus -m maintain -o add -s 784-787
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_784 >legend_784.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_785 >legend_785.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_786 >legend_786.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_787 >legend_787.sql
python wjtx.py initdb -s 784
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_784 -e"source all.sql"
python import_redis.py 10.10.6.173 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.174
python wjtx.py changestatus -m maintain -o remove -s 784-787
=======================================step 3===============================================
10.10.6.165,169
python wjtx.py changestatus -m maintain -o add -s 768-779
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_768 >legend_768.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_776 >legend_776.sql
python wjtx.py initdb -s 768
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_768 -e"source all.sql"
python import_redis.py 10.10.6.165 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 768
redis-cli -h 10.10.6.4 hdel hefu_info 776
close 10.10.6.169
python wjtx.py changestatus -m maintain -o remove -s 768-779