How to solve 404 permalink errors on nginx server

After hours of debugging, I can’t say exactly what the problem was, however disabling all the plugin solved the issue. It wasn’t one particular plugin, I then re-enabled all of them and everything was fine. Thank you for your interest!

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