Relative Root Url For Sub domain name

update the fields in general settings in wp-admin. I think it will solve your issue.
please make sure that you will not give any static path for any image

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