Can’t access a variable defined in another template despite using GLOBAL

Can’t access a variable defined in another template despite using GLOBAL

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