unable to upload image locally

You need to change the file permissions on your wp-content folder (and containing folders) to 755. On your setup you can do this with:

find . -type d -exec sudo chmod 755 {} \;

Please note that using chmod -R 755 will mark both directories and files as 755.

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