Changing permalink settings causes 404

There are several possibilities: you may need to enable mod_rewrite on the Ubuntu server or check/fix permissions to allow WordPress to write to the .htaccess file.

Best thing to do is read http://codex.wordpress.org/Using_Permalinks and work through suggestions.

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