Displaying shortcode in footer

Your shortcode function is all wrong, should be:

function copyright_shortcode() {
    return date("Y");
}

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