修复初始化加载mysql链接bug
This commit is contained in:
parent
db7bb1a731
commit
003e4b1915
|
|
@ -258,8 +258,10 @@ def init_with_config():
|
||||||
g_redisinfo['ip'] = config.get('redis', 'ip_inner')
|
g_redisinfo['ip'] = config.get('redis', 'ip_inner')
|
||||||
if config.has_option('rpc', 'host_inner'):
|
if config.has_option('rpc', 'host_inner'):
|
||||||
g_config['rpc_host'] = config.get('rpc', 'host_inner')
|
g_config['rpc_host'] = config.get('rpc', 'host_inner')
|
||||||
if config.has_option('user_db', 'host_inner'):
|
if config.has_option('user_dbinfo', 'host_inner'):
|
||||||
g_user_db['host'] = config.get('user_db', 'host_inner')
|
g_user_db['host'] = config.get('user_db', 'host_inner')
|
||||||
|
if config.has_option('cross_delay_db', 'host_inner'):
|
||||||
|
g_cross_delay_db['host'] = config.get('cross_delay_db', 'host_inner')
|
||||||
print(g_dbinfo)
|
print(g_dbinfo)
|
||||||
print(g_roadnet_db)
|
print(g_roadnet_db)
|
||||||
print(g_cloud_db)
|
print(g_cloud_db)
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ from app.tmnet_db_func import *
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
g_dbinfo = {
|
g_dbinfo = {
|
||||||
'host': '49.232.183.190',
|
'host': '120.53.125.169',
|
||||||
'port': 3306,
|
'port': 3306,
|
||||||
'user': 'root',
|
'user': 'root',
|
||||||
'password': 'pmenJIn7EaK40oThn~~',
|
'password': 'pmenJIn7EaK40oThn~~',
|
||||||
|
|
@ -53,10 +53,10 @@ g_redisinfo = {
|
||||||
}
|
}
|
||||||
|
|
||||||
g_user_db = {
|
g_user_db = {
|
||||||
'host': '82.157.173.20',
|
'host': '120.53.125.169',
|
||||||
'port': 3306,
|
'port': 3306,
|
||||||
'user': 'root',
|
'user': 'root',
|
||||||
'password': 'pmenJIn7EaK40oThn~~',
|
'password': 'pmenJIn7EaK40oThn~~~',
|
||||||
'db': 'user'
|
'db': 'user'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue