Where to call wp_enqueue_script in a plugin with custom template?

The action is plural: wp_print_scripts, however, the action you want to enqueue scripts on is wp_enqueue_scripts.

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