pengtao 86fdbc7445 1
2022-04-12 18:29:32 +08:00

60 lines
3.4 KiB
Plaintext

========================================check combine data=========================================
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_788 -e"select count(1),server_id from user group by server_id;"
==========================================step 1===============================================
10.10.6.175-176
python wjtx.py changestatus -m maintain -o add -s 788-791
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_789 >legend_789.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_790 >legend_790.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_791 >legend_791.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
close 10.10.6.176
python wjtx.py changestatus -m maintain -o remove -s 788-791
==========================================step 2===============================================
10.10.6.177,178
python wjtx.py changestatus -m maintain -o add -s 792-795
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_792 >legend_792.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_793 >legend_793.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_794 >legend_794.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_795 >legend_795.sql
python wjtx.py initdb -s 792
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_792 -e"source all.sql"
python import_redis.py 10.10.6.177 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.178
python wjtx.py changestatus -m maintain -o remove -s 792-795
=======================================step 3===============================================
10.10.6.171,173
python wjtx.py changestatus -m maintain -o add -s 780-787
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_784 >legend_784.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
redis-cli -h 10.10.6.4 hdel hefu_info 780
redis-cli -h 10.10.6.4 hdel hefu_info 784
close 10.10.6.173
python wjtx.py changestatus -m maintain -o remove -s 780-787
=======================================step 4===============================================
10.10.6.246,165
python wjtx.py changestatus -m maintain -o add -s 712-779
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_712 >legend_712.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_768 >legend_768.sql
python wjtx.py initdb -s 712
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_712 -e"source all.sql"
python import_redis.py 10.10.6.246 6382 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 712
redis-cli -h 10.10.6.4 hdel hefu_info 768
close 10.10.6.165
python wjtx.py changestatus -m maintain -o remove -s 712-779