提交 17b0f303 编写于 作者: L LINxiansheng 提交者: LINGuanRen

fix dooba bugs

上级 d42f3174
......@@ -1079,7 +1079,13 @@ class oceanbase(object):
self.app_info = ObConfigHelper().get_app_info(dataid)
def dosql(self, sql, host=None, port=None, database=None):
if host is None:
cmd = "mysql -V"
p = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True)
err = p.wait()
if err:
raise Exception('please install mysql', cmd)
if host is None:
host = self.__host
if port is None:
port = self.__port
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册