How to get authors avatar

The function you’re looking for is get_avatar – you should put in something like this:

<?php echo get_avatar( get_the_author_meta( 'ID' )); ?>

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