Redirect in WordPress plugin

As in the documentation:

wp_redirect() does not exit automatically, and should almost always be followed by a call to exit;:

wp_redirect( plugin_dir_url(__FILE__) );
exit;

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