Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
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
ops
jumpserver
Commits
09416286
Commit
09416286
authored
Dec 29, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix install port bug
parent
c5f9db45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
install.py
install/install.py
+2
-2
No files found.
install/install.py
View file @
09416286
...
...
@@ -109,7 +109,7 @@ class PreSetup(object):
def
_test_db_conn
(
self
):
try
:
MySQLdb
.
connect
(
host
=
self
.
db_host
,
port
=
self
.
db_port
,
MySQLdb
.
connect
(
host
=
self
.
db_host
,
port
=
int
(
self
.
db_port
)
,
user
=
self
.
db_user
,
passwd
=
self
.
db_pass
,
db
=
self
.
db
)
color_print
(
'连接数据库成功'
,
'green'
)
return
True
...
...
@@ -157,7 +157,7 @@ class PreSetup(object):
self
.
_setup_mysql
()
else
:
db_host
=
raw_input
(
'请输入数据库服务器IP [127.0.0.1]: '
)
db_port
=
int
(
raw_input
(
'请输入数据库服务器端口 [3306]: '
)
)
db_port
=
raw_input
(
'请输入数据库服务器端口 [3306]: '
)
db_user
=
raw_input
(
'请输入数据库服务器用户 [root]: '
)
db_pass
=
raw_input
(
'请输入数据库服务器密码: '
)
db
=
raw_input
(
'请输入使用的数据库 [jumpserver]: '
)
...
...
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