Display CPT posts based on specific taxonomy

$args = array(
    'tax_query' => array(
        array(
            'taxonomy' => 'typ',
            'field'    => 'slug',
            'terms'    => 'production',
        ),
    ),
    'post_type' => 'opencourses',
    'posts_per_page' => -1,
    'post_status' => 'publish',
);
$query = new WP_Query( $args );

Please try above code.
Thanks.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)