pengtao bad5e04122 1
2022-05-24 13:56:14 +08:00

32 lines
1.8 KiB
Plaintext

========================================check combine data=========================================
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_832 -e"select count(1),server_id from user group by server_id;"
==========================================step 1===============================================
10.10.6.197-198
python wjtx.py changestatus -m maintain -o add -s 832-835
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_832 >legend_832.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_833 >legend_833.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_834 >legend_834.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_835 >legend_835.sql
python wjtx.py initdb -s 832
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_832 -e"source all.sql"
python import_redis.py 10.10.6.197 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.198
python wjtx.py changestatus -m maintain -o remove -s 832-835
==========================================step 2===============================================
10.10.6.191,195
python wjtx.py changestatus -m maintain -o add -s 820-831
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_828 >legend_828.sql
python wjtx.py initdb -s 820
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_820 -e"source all.sql"
python import_redis.py 10.10.6.191 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 820
redis-cli -h 10.10.6.4 hdel hefu_info 828
close 10.10.6.195
python wjtx.py changestatus -m maintain -o remove -s 820-831