struggling with syntax for the_post_thumbnail();

the_post_thumbnail() accepts second parameter $attr, that’s array of options, so to display alt for image use something like this:

 the_post_thumbnail( 'medium', array( 'alt' => 'Image alt' ) );

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