combine in 2021-12-22
This commit is contained in:
parent
0648f06a3a
commit
a536b7d800
@ -35,52 +35,72 @@ clear_mysql:
|
||||
select count(id) from role_mail where role_id not in (select id from role)
|
||||
select count(id) FROM `tribe_member` WHERE role_id NOT IN ( SELECT id FROM role)
|
||||
========================================check combine data=========================================
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_656 -e"select count(1),server_id from user group by server_id;"
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_636 -e"select count(1),server_id from user group by server_id;"
|
||||
==========================================step 1===============================================
|
||||
10.10.6.108,111
|
||||
python wjtx.py changestatus -m maintain -o add -s 656-663
|
||||
10.10.6.114-117
|
||||
python wjtx.py changestatus -m maintain -o add -s 668-675
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_656 >legend_656.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_657 >legend_657.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_658 >legend_658.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_659 >legend_659.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_660 >legend_660.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_661 >legend_661.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_662 >legend_662.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_663 >legend_663.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_668 >legend_668.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_669 >legend_669.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_670 >legend_670.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_671 >legend_671.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_672 >legend_672.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_673 >legend_673.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_674 >legend_674.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_675 >legend_675.sql
|
||||
|
||||
python wjtx.py initdb -s 656
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_656 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.108 6381 out/game_redis.script
|
||||
python wjtx.py initdb -s 668
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_668 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.114 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.109,110,111
|
||||
python wjtx.py changestatus -m maintain -o remove -s 656-663
|
||||
close 10.10.6.115,116,117
|
||||
python wjtx.py changestatus -m maintain -o remove -s 668-675
|
||||
==========================================step 2===============================================
|
||||
10.10.6.112,113
|
||||
python wjtx.py changestatus -m maintain -o add -s 664-667
|
||||
10.10.6.118-121
|
||||
python wjtx.py changestatus -m maintain -o add -s 676-683
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_664 >legend_664.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_665 >legend_665.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_666 >legend_666.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_667 >legend_667.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_676 >legend_676.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_677 >legend_677.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_678 >legend_678.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_679 >legend_679.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_680 >legend_680.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_681 >legend_681.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_682 >legend_682.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_683 >legend_683.sql
|
||||
|
||||
python wjtx.py initdb -s 664
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_664 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.112 6381 out/game_redis.script
|
||||
python wjtx.py initdb -s 676
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_676 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.118 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
close 10.10.6.113
|
||||
python wjtx.py changestatus -m maintain -o remove -s 664-667
|
||||
close 10.10.6.119,120,121
|
||||
python wjtx.py changestatus -m maintain -o remove -s 676-683
|
||||
=======================================step 3===============================================
|
||||
10.10.6.230 104
|
||||
python wjtx.py changestatus -m maintain -o add -s 636-651
|
||||
10.10.6.230 246
|
||||
python wjtx.py changestatus -m maintain -o add -s 616-651
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_616 >legend_616.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_636 >legend_636.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_648 >legend_648.sql
|
||||
|
||||
python wjtx.py initdb -s 636
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_636 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.230 6382 out/game_redis.script
|
||||
python wjtx.py initdb -s 616
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_616 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.246 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 game_info 648
|
||||
close 10.10.6.104
|
||||
python wjtx.py changestatus -m maintain -o remove -s 636-651
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 616
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 636
|
||||
python wjtx.py changestatus -m maintain -o remove -s 616-651
|
||||
=======================================step 4===============================================
|
||||
10.10.6.106,108,112
|
||||
python wjtx.py changestatus -m maintain -o add -s 652-667
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_652 >legend_652.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_656 >legend_656.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_664 >legend_664.sql
|
||||
|
||||
python wjtx.py initdb -s 652
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_652 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.106 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 652
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 656
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 664
|
||||
python wjtx.py changestatus -m maintain -o remove -s 652-667
|
@ -30,7 +30,7 @@ def read_json(filename):
|
||||
def main():
|
||||
create_conf_work()
|
||||
csv_data = get_csv()
|
||||
for i in range(1, 4):
|
||||
for i in range(1, 5):
|
||||
check_file = f"server_list_{i}.json"
|
||||
json_data = read_json(check_file)
|
||||
print(f"check {check_file}")
|
||||
|
@ -1,42 +1,42 @@
|
||||
[
|
||||
{
|
||||
"serverid": 656,
|
||||
"redis_host": "10.10.6.108",
|
||||
"serverid": 668,
|
||||
"redis_host": "10.10.6.114",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 657,
|
||||
"redis_host": "10.10.6.108",
|
||||
"serverid": 669,
|
||||
"redis_host": "10.10.6.114",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 658,
|
||||
"redis_host": "10.10.6.109",
|
||||
"serverid": 670,
|
||||
"redis_host": "10.10.6.115",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 659,
|
||||
"redis_host": "10.10.6.109",
|
||||
"serverid": 671,
|
||||
"redis_host": "10.10.6.115",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 660,
|
||||
"redis_host": "10.10.6.110",
|
||||
"serverid": 672,
|
||||
"redis_host": "10.10.6.116",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 661,
|
||||
"redis_host": "10.10.6.110",
|
||||
"serverid": 673,
|
||||
"redis_host": "10.10.6.116",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 662,
|
||||
"redis_host": "10.10.6.111",
|
||||
"serverid": 674,
|
||||
"redis_host": "10.10.6.117",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 663,
|
||||
"redis_host": "10.10.6.111",
|
||||
"serverid": 675,
|
||||
"redis_host": "10.10.6.117",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,22 +1,42 @@
|
||||
[
|
||||
{
|
||||
"serverid": 664,
|
||||
"redis_host": "10.10.6.112",
|
||||
"serverid": 676,
|
||||
"redis_host": "10.10.6.118",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 665,
|
||||
"redis_host": "10.10.6.112",
|
||||
"serverid": 677,
|
||||
"redis_host": "10.10.6.118",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 666,
|
||||
"redis_host": "10.10.6.113",
|
||||
"serverid": 678,
|
||||
"redis_host": "10.10.6.119",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 667,
|
||||
"redis_host": "10.10.6.113",
|
||||
"serverid": 679,
|
||||
"redis_host": "10.10.6.119",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 680,
|
||||
"redis_host": "10.10.6.120",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 681,
|
||||
"redis_host": "10.10.6.120",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 682,
|
||||
"redis_host": "10.10.6.121",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 683,
|
||||
"redis_host": "10.10.6.121",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,12 +1,12 @@
|
||||
[
|
||||
{
|
||||
"serverid": 616,
|
||||
"redis_host": "10.10.6.246",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 636,
|
||||
"redis_host": "10.10.6.230",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 648,
|
||||
"redis_host": "10.10.6.104",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
17
tools/combine_db/tools_conf/server_list_4.json
Normal file
17
tools/combine_db/tools_conf/server_list_4.json
Normal file
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"serverid": 652,
|
||||
"redis_host": "10.10.6.106",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 656,
|
||||
"redis_host": "10.10.6.108",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 664,
|
||||
"redis_host": "10.10.6.112",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user