|
@@ -24,10 +24,10 @@ class MysqlUtils(object):
|
|
|
def __init__(self):
|
|
|
|
|
|
config = dict(
|
|
|
- host=ConfConstant.TIDB_PRO_HOST,
|
|
|
- user=ConfConstant.TIDB_PRO_USER,
|
|
|
- password=ConfConstant.TIDB_PRO_PASSWORD,
|
|
|
- port=ConfConstant.TIDB_PRO_PORT,
|
|
|
+ host=ConfConstant.TIDB_HOST,
|
|
|
+ user=ConfConstant.TIDB_USER,
|
|
|
+ password=ConfConstant.TIDB_PASSWORD,
|
|
|
+ port=ConfConstant.TIDB_PORT,
|
|
|
charset='utf8mb4', # 编码要加上,否则可能出现中文乱码问题
|
|
|
use_unicode=False,
|
|
|
)
|