Most efficient way to have 1 template for parent, 1 template for child categories?

Most efficient way to have 1 template for parent, 1 template for child categories?

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