is_admin() not working when updating a post in the admin panel

is_admin() not working when updating a post in the admin panel

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