Display custom taxonomy on single post

I found the answer CSS Tricks and it works.

Here’s the code I use.

$terms = get_the_terms( $post->ID , 'portfolio_user' );
foreach ( $terms as $term ) {
  echo $term->slug;
}

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