Getting 404.php instead of single-.php [duplicate]

Nevermind. For some reason, I had to go to my permalinks page and click ‘Save Changes’ for this to show up. It is bewildering.

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