How to get the term id inside the start lvl method of category walker?

You can’t because you don’t have access to the element in that stage, but check this answer.

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