using `require` in my functions.php breaks the site

Try

require('inc/test.php'); 

instead of

require('/inc/test.php');

Remove / before inc.

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