I’m having a problem viewing the Youtube video

You should use the_content function to process embeds.
Another way is to apply the_content filter.

apply_filters( 'the_content', $post->post_content' );

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