Getting tagid from tagname

get_term_by() might help you here.

$tag = get_term_by('id', 12, 'post_tag'); //or whatever taxonomy you are using 
echo $tag->name;

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