If post content exists (any post content), do not display featured image

Just check the raw post content without any filters:

if ( "" === $post->post_content )
{
     the_post_thumbnail();
}
else
{
    the_content();
}

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