46 lines
2.6 KiB
Plaintext
46 lines
2.6 KiB
Plaintext
========================================check combine data=========================================
|
|
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_744 -e"select count(1),server_id from user group by server_id;"
|
|
==========================================step 1===============================================
|
|
10.10.6.153-154
|
|
python wjtx.py changestatus -m maintain -o add -s 744-747
|
|
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_745 >legend_745.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_746 >legend_746.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_747 >legend_747.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
|
|
close 10.10.6.154
|
|
python wjtx.py changestatus -m maintain -o remove -s 744-747
|
|
==========================================step 2===============================================
|
|
10.10.6.155,156
|
|
python wjtx.py changestatus -m maintain -o add -s 748-751
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_748 >legend_748.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_749 >legend_749.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_750 >legend_750.sql
|
|
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_751 >legend_751.sql
|
|
|
|
python wjtx.py initdb -s 748
|
|
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_748 -e"source all.sql"
|
|
python import_redis.py 10.10.6.155 6381 out/game_redis.script
|
|
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
|
close 10.10.6.156
|
|
python wjtx.py changestatus -m maintain -o remove -s 748-751
|
|
=======================================step 3===============================================
|
|
10.10.6.246,147
|
|
python wjtx.py changestatus -m maintain -o add -s 712-739
|
|
|
|
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_732 >legend_732.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 732
|
|
close 10.10.6.147
|
|
python wjtx.py changestatus -m maintain -o remove -s 712-739
|
|
|