I cannot upload images to post or the media library in wordpress

Make sure the wp-content/uploads directory is writable.

In Ubuntu, open the terminal, then type

chmod 777 -R /var/www/html/wordpress/wp-content/uploads

Adjust that command to your WordPress installation directory. Then, try again.

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