How can I tell what category I’m in?

This should get you category object with ID, slug and rest of info:

$wp_query->get_queried_object();

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