Get taxonomy name used in a current post

You can use below code to get the taxonomy by post ID:

$yourterms = get_the_terms( $post->ID , array( 'taxonomy_name') );
foreach ( $yourterms as $term ) {
 echo $term->name;
}

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