get_terms showing all categories instead of the ones assigned to a specific post

There are two functions:

get_terms

get_terms( string|array $args = array(), array $deprecated = '' )

Which retrieves the terms in a given taxonomy or list of taxonomies.

And…

get_the_terms

get_the_terms( int|object $post, string $taxonomy )

Which retrieves the terms of the taxonomy that are attached to the post.

You should use second one in your case, I guess…

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