wp-admin is opening but the site isn’t opening

If you are not using the default port, you should write the port in the wp_options table in your database at siteurl and home after the localhost.

For example, localhost/site/wp-admin/ becomes
localhost:8080/site/wp-admin/.

Does this option work for you?

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