Commit e11b10ae authored by shenshuo's avatar shenshuo

opssdk格式化数据库端口

parent 2c8f3dbc
...@@ -16,7 +16,7 @@ class MysqlBase: ...@@ -16,7 +16,7 @@ class MysqlBase:
self.user = args.get('user') self.user = args.get('user')
self.pswd = args.get('passwd') self.pswd = args.get('passwd')
self.db = args.get('db') self.db = args.get('db')
self.port = args.get('port') self.port = int(args.get('port', 3306))
self.charset = args.get('charset', 'utf8') self.charset = args.get('charset', 'utf8')
log_path = '/log/yunwei/yunwei_mysql.log' log_path = '/log/yunwei/yunwei_mysql.log'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment