How to identify the origin of an issue or an unexpected behavior?

How to identify the origin of an issue or an unexpected behavior?

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