pengtao adac557c80 1
2022-03-15 11:56:26 +08:00

59 lines
3.4 KiB
Plaintext

========================================check combine data=========================================
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_760 -e"select count(1),server_id from user group by server_id;"
==========================================step 1===============================================
10.10.6.161-162
python wjtx.py changestatus -m maintain -o add -s 760-763
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_760 >legend_760.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_761 >legend_761.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_762 >legend_762.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_763 >legend_763.sql
python wjtx.py initdb -s 760
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_760 -e"source all.sql"
python import_redis.py 10.10.6.161 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.162
python wjtx.py changestatus -m maintain -o remove -s 760-763
==========================================step 2===============================================
10.10.6.163-164
python wjtx.py changestatus -m maintain -o add -s 764-767
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_764 >legend_764.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_765 >legend_765.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_766 >legend_766.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_767 >legend_767.sql
python wjtx.py initdb -s 764
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_764 -e"source all.sql"
python import_redis.py 10.10.6.163 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.164
python wjtx.py changestatus -m maintain -o remove -s 764-767
=======================================step 3===============================================
10.10.6.246,153
python wjtx.py changestatus -m maintain -o add -s 712-751
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_744 >legend_744.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 744
close 10.10.6.153
python wjtx.py changestatus -m maintain -o remove -s 712-751
=======================================step 4===============================================
10.10.6.157,159
python wjtx.py changestatus -m maintain -o add -s 752-759
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_756 >legend_756.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
redis-cli -h 10.10.6.4 hdel hefu_info 752
redis-cli -h 10.10.6.4 hdel hefu_info 756
close 10.10.6.159
python wjtx.py changestatus -m maintain -o remove -s 752-759