WordPress keeps deleting .htaccess file

You can give the read-only rights to .htaccess to prevent it from the modifications or removal.

$cd <your website directory>
$chmod 400 .htaccess

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