execute custom function on database connection error

We you want to customise your Error Establishing Database Connection to something else then you need to create a file.

Here is the documentation for that

https://yoast.com/custom-wordpress-database-error-pages/

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