Failed to upload image on localhost

It turns out the permission settings are fine. I just needed to restart the Apache server. This problem had nothing to do with the modification of the httpd.conf file.

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