Creating links to a page displaying posts from a particular category

This should work:

foreach ($tax_terms as $tax_term) {
    echo '<a href="'.get_term_link($tax_term).'">'.$tax_term->name.'</a>';
}

Simplified a bit from your version for readability.

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