Jul-17-2017, 07:25 AM
mysql Workbench export script (wb_admin_export.py) - how do i skip version check...??
version numbers of Workbench bundle and mysql bundle are diffrent
so i can't run database export....

version numbers of Workbench bundle and mysql bundle are diffrent
so i can't run database export....

def get_mysqldump_version(): path = get_path_to_mysqldump() if not path: log_error("mysqldump command was not found, please install it or configure it in Edit -> Preferences -> MySQL") return None output = StringIO.StringIO() rc = local_run_cmd('"%s" --version' % path, output_handler=output.write) output = output.getvalue() if rc or not output: log_error("Error retrieving version from %s:\n%s (exit %s)"%(path, output, rc)) return None s = re.match(".*Distrib ([\d.a-z]+).*", output) if not s: log_error("Could not parse version number from %s:\n%s"%(path, output)) return None version_group = s.groups()[0] major, minor, revision = [int(i) for i in version_group.split(".")[:3]] return Version(major, minor, revision)