1
This commit is contained in:
parent
c9687f8bab
commit
41d262c67a
@ -1,6 +1,50 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"table_name": "version",
|
"table_name": "version",
|
||||||
|
"where": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "user",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "bag",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "sign",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "quest",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "share_achievement",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "activity",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "passinfo",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "shop",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "additem_log",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "equip",
|
||||||
|
"where": "accountid LIKE '$channel_'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table_name": "shop_data",
|
||||||
"where": "accountid LIKE '$channel_'"
|
"where": "accountid LIKE '$channel_'"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -78,7 +78,7 @@ def exportMysql(context, db_conf, db_rule_conf):
|
|||||||
for conf in db_conf:
|
for conf in db_conf:
|
||||||
for rule in db_rule_conf:
|
for rule in db_rule_conf:
|
||||||
line = ''
|
line = ''
|
||||||
if rule['where'] != '':
|
if rule['where'] == '':
|
||||||
line = 'mysqldump -h %s -P %d -u%s -p%s %s %s > %s.sql' % (
|
line = 'mysqldump -h %s -P %d -u%s -p%s %s %s > %s.sql' % (
|
||||||
conf['host'],
|
conf['host'],
|
||||||
conf['port'],
|
conf['port'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user