WordPress site running on a local XAMPP server keeps redirecting to a XAMPP page

Apparently, for some reason, the permalinks formatting setting had changed to a different one that was used while building the site. I changed it back to what I was using before and everything works!

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