Should I use do_action in the header file?

In my development experience.
get_template_part() is better way to maintain In the future.

https://developer.wordpress.org/reference/functions/get_template_part/

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