Difficulty loading jQuery with wp_enqueue_script

wp_enqueue_scripts is a PHP hook, so you should use it in PHP. It won’t work, if you add it to some JS file.

So if it’s not a typo and you really put this code to functions.js file, then that’s the reason it doesn’t work.

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