def METHOD_NAME(self):
    self.getVersionFromBanner()
    banVer = kb.bannerFp["dbmsVersion"]
    if banVer and LooseVersion(banVer) >= LooseVersion("5.0.67"):
        if self.__plugindir is None:
            logger.info("retrieving MySQL plugin directory absolute path")
            self.__plugindir = unArrayizeValue(inject.getValue("SELECT @@plugin_dir"))
        # On MySQL 5.1 >= 5.1.19 and on any version of MySQL 6.0
        if self.__plugindir is None and LooseVersion(banVer) >= LooseVersion("5.1.19"):
            logger.info("retrieving MySQL base directory absolute path")
            # Reference: http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_basedir
            self.__basedir = unArrayizeValue(inject.getValue("SELECT @@basedir"))
            if isWindowsDriveLetterPath(self.__basedir or ""):
                Backend.setOs(OS.WINDOWS)
            else:
                Backend.setOs(OS.LINUX)
            # The DLL must be in C:\Program Files\MySQL\MySQL Server 5.1\lib\plugin
            if Backend.isOs(OS.WINDOWS):
                self.__plugindir = "%s/lib/plugin" % self.__basedir
            else:
                self.__plugindir = "%s/lib/mysql/plugin" % self.__basedir
        self.__plugindir = ntToPosixSlashes(normalizePath(self.__plugindir)) or '.'
        self.udfRemoteFile = "%s/%s.%s" % (self.__plugindir, self.udfSharedLibName, self.udfSharedLibExt)
    # On MySQL 4.1 < 4.1.25 and on MySQL 4.1 >= 4.1.25 with NO plugin_dir set in my.ini configuration file
    # On MySQL 5.0 < 5.0.67 and on MySQL 5.0 >= 5.0.67 with NO plugin_dir set in my.ini configuration file
    else:
        # logger.debug("retrieving MySQL data directory absolute path")
        # Reference: http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_datadir
        # self.__datadir = inject.getValue("SELECT @@datadir")
        # NOTE: specifying the relative path as './udf.dll'
        # saves in @@datadir on both MySQL 4.1 and MySQL 5.0
        self.__datadir = '.'
        self.__datadir = ntToPosixSlashes(normalizePath(self.__datadir))
        # The DLL can be in either C:\WINDOWS, C:\WINDOWS\system,
        # C:\WINDOWS\system32, @@basedir\bin or @@datadir
        self.udfRemoteFile = "%s/%s.%s" % (self.__datadir, self.udfSharedLibName, self.udfSharedLibExt)