2022-03-23 15:06:46 +08:00

59 lines
3.4 KiB
Plaintext

========================================check combine data=========================================
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_768 -e"select count(1),server_id from user group by server_id;"
==========================================step 1===============================================
10.10.6.165-166
python wjtx.py changestatus -m maintain -o add -s 768-771
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_769 >legend_769.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_770 >legend_770.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_771 >legend_771.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
close 10.10.6.166
python wjtx.py changestatus -m maintain -o remove -s 768-771
==========================================step 2===============================================
10.10.6.167-168
python wjtx.py changestatus -m maintain -o add -s 772-775
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_772 >legend_772.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_773 >legend_773.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_774 >legend_774.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_775 >legend_775.sql
python wjtx.py initdb -s 772
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_772 -e"source all.sql"
python import_redis.py 10.10.6.167 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.168
python wjtx.py changestatus -m maintain -o remove -s 772-775
=======================================step 3===============================================
10.10.6.246,157
python wjtx.py changestatus -m maintain -o add -s 712-759
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_752 >legend_752.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 752
close 10.10.6.157
python wjtx.py changestatus -m maintain -o remove -s 712-759
=======================================step 4===============================================
10.10.6.161,163
python wjtx.py changestatus -m maintain -o add -s 760-767
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_764 >legend_764.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
redis-cli -h 10.10.6.4 hdel hefu_info 760
redis-cli -h 10.10.6.4 hdel hefu_info 764
close 10.10.6.163
python wjtx.py changestatus -m maintain -o remove -s 760-767