Check if post belongs to any category

You can use is_object_in_term(). Despite name it can also check for taxonomy match if terms are omitted.

is_object_in_term( get_the_ID(), 'category' );

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