def METHOD_NAME():
    ccnet_conf = os.path.join(env_mgr.ccnet_dir, 'ccnet.conf')
    defaults = {
        'HOST': '127.0.0.1',
        'PORT': '3306',
    }
    config = Utils.read_config(ccnet_conf, defaults)
    db_section = 'Database'
    if not config.has_section(db_section):
        return None
    type = config.get(db_section, 'ENGINE')
    if type != 'mysql':
        return None
    try:
        host = config.get(db_section, 'HOST')
        port = config.getint(db_section, 'PORT')
        username = config.get(db_section, 'USER')
        password = config.get(db_section, 'PASSWD')
        db = config.get(db_section, 'DB')
    except configparser.NoOptionError as e:
        Utils.error('Database config in ccnet.conf is invalid: %s' % e)
    info = MySQLDBInfo(host, port, username, password, db)
    return info