Changing domain for site running on raspberry pi server

The missing link is to configure a DNS that will resolve the domain name to the IP address, and configure a virtual host for the domain on the Apache. Both of these topics are off-topic here and have a lot of documentation on the web therefor I am not going to get into specific details.

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