WP Redirect with user nickname/username

Try placing a header() function instead of wp_redirect, so

header("Location: mysite.com/profile/username");

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