mirror of https://github.com/jumpserver/jumpserver
fix install port bug
parent
c5f9db450d
commit
09416286bf
|
@ -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]: ')
|
||||
|
|
Loading…
Reference in New Issue