Displaying a custom post types custom taxonomy value?

$albumGenres = get_the_terms( $post->ID, 'discography_album_label' );
foreach ( $albumGenres as $albumGenre ) {
  echo $albumGenre->name; // or whatever value
}

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