How to find taxonomy parent id from child taxonomy page?

the answer actually turned out to be incredibly simple. Since I was already:

$term = $wp_query->queried_object;

I could simple do:

$term->parent

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