Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Script
install.api
Commits
d73148cb
Commit
d73148cb
authored
Apr 08, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据库测试提示
parent
fa273294
Pipeline
#22219
failed with stage
in 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
conncetion_service.py
app/conncetion/conncetion_service.py
+1
-1
No files found.
app/conncetion/conncetion_service.py
View file @
d73148cb
...
@@ -44,7 +44,7 @@ class ConnectionService():
...
@@ -44,7 +44,7 @@ class ConnectionService():
# 验证数据库连接是否正确
# 验证数据库连接是否正确
if
not
CommonTools
()
.
test_db_connection
(
db_ip
,
db_port
,
db_user
,
db_password
,
mes_db_name
):
if
not
CommonTools
()
.
test_db_connection
(
db_ip
,
db_port
,
db_user
,
db_password
,
mes_db_name
):
raise
HSException
(
'
数据库连接失败
,请检查'
)
raise
HSException
(
'
您填写的数据库信息未能连接上数据库
,请检查'
)
with
db_driver
as
session
:
with
db_driver
as
session
:
if
id
:
if
id
:
...
...
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