All wp-json routes suddenly return 404

Okay, it was really weird. I just went to the Permalink settings and clicked Save without changing anything. That somehow fixed it.

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