wp_redirect doen’t work

I think you understand wp_redirect incorrectly.

This function redirects you to a different URL. It’s like sending header('Location: ...');

On the other hand, it looks like you’re trying to pass local path as its param. So it won’t work – such path is not a valid URL address.

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