Set default featured image for terms of a custom taxonomy

Instead of using get_the_category() use get_terms()
so something like this:

<img src="https://wordpress.stackexchange.com/questions/77017/whatever/directory/<?php $terms = get_terms("TAXONOMY_NAME'); echo $terms[0]->term_name; ?>.jpg" /> 

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