pengtao d4b35ec5ce 1
2022-06-07 15:12:27 +08:00

47 lines
2.7 KiB
Plaintext

========================================check combine data=========================================
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_844 -e"select count(1),server_id from user group by server_id;"
==========================================step 1===============================================
10.10.6.203-204
python wjtx.py changestatus -m maintain -o add -s 844-847
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_844 >legend_844.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_845 >legend_845.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_846 >legend_846.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_847 >legend_847.sql
python wjtx.py initdb -s 844
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_844 -e"source all.sql"
python import_redis.py 10.10.6.203 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.204
python wjtx.py changestatus -m maintain -o remove -s 844-847
==========================================step 2===============================================
10.10.6.205-206
python wjtx.py changestatus -m maintain -o add -s 848-851
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_848 >legend_848.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_849 >legend_849.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_850 >legend_850.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_851 >legend_851.sql
python wjtx.py initdb -s 848
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_848 -e"source all.sql"
python import_redis.py 10.10.6.205 6381 out/game_redis.script
python import_redis.py 10.10.6.4 6379 out/global_redis.script
close 10.10.6.206
python wjtx.py changestatus -m maintain -o remove -s 848-851
==========================================step 3===============================================
10.10.6.199,201
python wjtx.py changestatus -m maintain -o add -s 836-843
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_836 >legend_836.sql
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_840 >legend_840.sql
python wjtx.py initdb -s 836
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_836 -e"source all.sql"
python import_redis.py 10.10.6.199 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 836
redis-cli -h 10.10.6.4 hdel hefu_info 840
close 10.10.6.201
python wjtx.py changestatus -m maintain -o remove -s 836-843