How to check the terms in single custom post type template

If I understand you correctly, then has_term should be solution for your problem…

if ( has_term( 'past-events', 'event_type' ) ) {
    // do something
}

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