Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
973d53eb
Commit
973d53eb
authored
Nov 30, 2017
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b38301a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
db_gen_config.sh
db-utils/db_gen_config.sh
+3
-8
No files found.
db-utils/db_gen_config.sh
View file @
973d53eb
...
...
@@ -46,7 +46,7 @@ if [[ $database_name = 'xyqb' ]]; then
# 信用钱包database
# repay v_manifest v_repay 是view类型的
# secure_proxy 表里面的数据需要被同步
sys_table_list
=
'baitiao_merchant baitiao_secure_key channel funding_contract funding_corp loan_product merchant_channel payeco_return_url_info red_packet t_phonenum zmxy_return_url configuration
repay v_manifest v_repay
secure_proxy funding_corp_config funding_info_map baitiao_preferential_rule funding_corp_policy'
sys_table_list
=
'baitiao_merchant baitiao_secure_key channel funding_contract funding_corp loan_product merchant_channel payeco_return_url_info red_packet t_phonenum zmxy_return_url configuration secure_proxy funding_corp_config funding_info_map baitiao_preferential_rule funding_corp_policy'
port
=
'3306'
elif
[[
$database_name
=
'xyqb_app'
]]
;
then
# app-backend使用的数据库
...
...
@@ -164,12 +164,7 @@ if [ $use_cache = true ];then
else
for
table_name
in
$sys_table_list
do
file_name
=
$db_backup_sub_folders
/
$table_name
.sql
if
[[
$table_name
=
'repay'
||
$table_name
=
'v_manifest'
||
$table_name
=
'v_repay'
]]
;
then
echo
"skip view table
$table_name
"
else
echo
"mysqldump -u
${
source_db_user
}
-p
${
source_db_pwd
}
-h
${
source_db_host
}
-P
${
port
}
$database_name
--tables
$table_name
>
$file_name
"
mysqldump
-u
${
source_db_user
}
-p
${
source_db_pwd
}
-h
${
source_db_host
}
-P
${
port
}
$database_name
--skip-lock-tables
--tables
$table_name
--skip-add-locks
>
$file_name
fi
echo
"mysqldump -u
${
source_db_user
}
-p
${
source_db_pwd
}
-h
${
source_db_host
}
-P
${
port
}
$database_name
--tables
$table_name
>
$file_name
"
mysqldump
-u
${
source_db_user
}
-p
${
source_db_pwd
}
-h
${
source_db_host
}
-P
${
port
}
$database_name
--skip-lock-tables
--tables
$table_name
--skip-add-locks
>
$file_name
done
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment