'Return True if the given connection is on the version given or
greater.
e.g.::
if self.mysql_server_is(conn, (5, 6, 4)):
# do something for MySQL 5.6.4 and above'

def mysql_server_is(self, conn, version_tuple):

    server_version = conn.get_server_info()
    server_version_tuple = tuple(((int(dig) if (dig is not None) else 0) for dig in re.match('(\\d+)\\.(\\d+)\\.(\\d+)', server_version).group(1, 2, 3)))
    return (server_version_tuple >= version_tuple)
