wp_redirect and current_user_can issues

You should be able to use current_user_can inside the admin_init hooked callback. See the Codex examples.

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