wp_redirect does not work

The only thing wp_redirect() is adding HTTP header to the current request. It doesn’t prevent request from proceeding to further loading page and must be followed by exit statement to work correctly.

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