How can I identify it as admin page or not?

Use is_admin() function. It will return true if it’s wp-admin page and false on frontend.
more here https://developer.wordpress.org/reference/functions/is_admin/

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