browser showing connection was reset while accessing posts from local host

It was syntex error in my functions.php which causing the error.
In the if statement it was not wp_enqueue_scripts. It was wp_enqueue_script

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