wordpress custom password change problem

the problem is with your cookies.wp_update_user function is trying to change them after all headers were sent, try to use such code like that:
function my_func(){
// your code
}
add_action(‘init’,’my_func’);

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