Get the alt text of the image in a array

This simply do the same work and also output the alt value:

<?php if (has_post_thumbnail()) : ?>
<div class="image"><?php the_post_thumbnail( array(186, 137) ); ?></div>
<?php endif; ?>

See Codex

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