Restrict Access to the User Profile

Use the function current_user_can( $capability ). Where $capabilty applies.

For example:

If ( current_user_can( 'update_plugins' ){
//do some update plugin stuff
}

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