How to replace a function using a child theme?

You should wrap your function in parent theme like this, not in child theme function.php

if (!function_exists('TaskerDev_get_first_post_image_fnc') ){
function TaskerDev_get_first_post_image_fnc($pid, $w = 100, $h = 100)
    {
//Parent theme code here
 }
}

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