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
3855dae7
Commit
3855dae7
authored
Jan 11, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
eea1587d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
db_gen_config.sh
db-utils/db_gen_config.sh
+8
-5
No files found.
db-utils/db_gen_config.sh
View file @
3855dae7
...
@@ -129,7 +129,6 @@ elif [[ $database_name = 'merchant' ]]; then
...
@@ -129,7 +129,6 @@ elif [[ $database_name = 'merchant' ]]; then
elif
[[
$database_name
=
'xyqb_btzt'
]]
;
then
elif
[[
$database_name
=
'xyqb_btzt'
]]
;
then
# 白条直投
# 白条直投
sys_table_list
=
'zt_channel zt_fund zt_fund_channel zt_fund_credit zt_fund_term'
sys_table_list
=
'zt_channel zt_fund zt_fund_channel zt_fund_credit zt_fund_term'
source_db_host
=
'192.168.4.39'
port
=
'9002'
port
=
'9002'
elif
[[
$database_name
=
'user_credit'
]]
;
then
elif
[[
$database_name
=
'user_credit'
]]
;
then
# user_credit
# user_credit
...
@@ -141,25 +140,29 @@ elif [[ $database_name = 'display' ]]; then
...
@@ -141,25 +140,29 @@ elif [[ $database_name = 'display' ]]; then
source_db_host
=
'192.168.3.19'
source_db_host
=
'192.168.3.19'
port
=
'3307'
port
=
'3307'
elif
[[
$database_name
=
'clotho'
]]
;
then
elif
[[
$database_name
=
'clotho'
]]
;
then
# display
sys_table_list
=
''
sys_table_list
=
''
source_db_host
=
'192.168.3.19'
source_db_host
=
'192.168.3.19'
port
=
'3308'
port
=
'3308'
elif
[[
$database_name
=
'traffic_distribution'
]]
;
then
elif
[[
$database_name
=
'traffic_distribution'
]]
;
then
# traffic_distribution
sys_table_list
=
'merchant merchant_carousel merchant_credit merchant_detail merchant_section merchant_sort ppdai_exclude_channel t_module t_module_role t_role t_user t_user_role traffic_channel_banner_ids traffic_channel_ids traffic_channel_sort traffic_infos'
sys_table_list
=
'merchant merchant_carousel merchant_credit merchant_detail merchant_section merchant_sort ppdai_exclude_channel t_module t_module_role t_role t_user t_user_role traffic_channel_banner_ids traffic_channel_ids traffic_channel_sort traffic_infos'
source_db_host
=
'192.168.3.36'
source_db_host
=
'192.168.3.36'
port
=
'3313'
port
=
'3313'
elif
[[
$database_name
=
'notify'
]]
;
then
elif
[[
$database_name
=
'notify'
]]
;
then
# 通知
sys_table_list
=
'merchant merchant_config'
sys_table_list
=
'merchant merchant_config'
source_db_host
=
'192.168.4.6'
source_db_host
=
'192.168.4.6'
port
=
'7306'
port
=
'7306'
elif
[[
$database_name
=
'mall_settlement'
]]
;
then
elif
[[
$database_name
=
'mall_settlement'
]]
;
then
# 通知
sys_table_list
=
'role role_user user'
sys_table_list
=
'role role_user user'
source_db_host
=
'192.168.4.253'
source_db_host
=
'192.168.4.253'
port
=
'3315'
port
=
'3315'
elif
[[
$database_name
=
'score'
]]
;
then
sys_table_list
=
''
source_db_host
=
'192.168.4.249'
port
=
'3322'
# elif [[ $database_name = 'silk_road' ]]; then
# sys_table_list='task'
# source_db_host='192.168.4.249'
# port='3322'
fi
fi
echo
"port is
$port
"
echo
"port is
$port
"
...
...
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