onclick post title in admin area javascript file not working

add_action('admin_enqueue_scripts','tasks_js_file_func');

Try with this action called admin_enqueue_scripts It’ll enqueue your js file inside of the WordPress admin area.

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