pengtao 702969314c 1
2022-03-08 11:13:24 +08:00

61 lines
3.4 KiB
Plaintext

========================================check combine data=========================================
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_752 -e"select count(1),server_id from user group by server_id;"
==========================================step 1===============================================
10.10.6.157-158
python wjtx.py changestatus -m maintain -o add -s 752-755
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_752 >legend_752.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_753 >legend_753.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_754 >legend_754.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_755 >legend_755.sql
python wjtx.py initdb -s 752
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_752 -e"source all.sql"
python import_redis.py 10.10.6.157 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.158
python wjtx.py changestatus -m maintain -o remove -s 752-755
==========================================step 2===============================================
10.10.6.159,160
python wjtx.py changestatus -m maintain -o add -s 756-759
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_756 >legend_756.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_757 >legend_757.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_758 >legend_758.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_759 >legend_759.sql
python wjtx.py initdb -s 756
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_756 -e"source all.sql"
python import_redis.py 10.10.6.159 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.160
python wjtx.py changestatus -m maintain -o remove -s 756-759
=======================================step 3===============================================
10.10.6.246,151
python wjtx.py changestatus -m maintain -o add -s 712-743
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_740 >legend_740.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 740
close 10.10.6.151
python wjtx.py changestatus -m maintain -o remove -s 712-743
=======================================step 4===============================================
10.10.6.153,155
python wjtx.py changestatus -m maintain -o add -s 744-751
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_744 >legend_744.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_748 >legend_748.sql
python wjtx.py initdb -s 744
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_744 -e"source all.sql"
python import_redis.py 10.10.6.153 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 744
redis-cli -h 10.10.6.4 hdel hefu_info 748
close 10.10.6.155
python wjtx.py changestatus -m maintain -o remove -s 744-751