apache cpu over 70% on localhost

Your tryout.php has a posts loop in it, and you’re calling that file inside another loop. Loops squared. I expect your content is not actually structured in this way?

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