Permalinks not working in WordPress

After changing “AllowOverride None” to “AllowOverride All” in Apache configuration files, it works

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