Displaying user selected custom tags/taxonomies on the front-end

If anybody needs to do this too – I was able to achieve this with the following code;

<?php
     $terms = wp_get_object_terms( $userid, 'user_sector' );

     foreach($terms as $term) {
         echo '<div class="sector">'. $term->name.'</div>';
     }
?>

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