Get the appropriate MySQL configuration

def get_mysql_cfg():
    """
    Get the appropriate MySQL configuration
    """
    environment = get_project_configuration()['environment']
    cfg = get_database_configuration()
    if environment == 'production':
        mysql = cfg['mysql_online']
    else:
        mysql = cfg['mysql_dev']
    return mysql