def get_db_url_mysql(config):
    """
    Format the configuration parameters to build the connection string
    """
    if 'DB_URL_TESTING' in config:
        return config['DB_URL_TESTING']
    return 'mysql+mysqlconnector://{}:{}@{}/{}'.format(config['DB_USER'],
        config['DB_PASS'], config['DB_HOST'], config['DB_NAME'])
