URGENT: DB password got reset now site demands installing

Permalink
The Admin reset the wrong DB password meaning a C5 dev site lost its DB access.

I put the new password into the database.php config file but now the site insists it's installing rather than just coming back up, constantly redirecting to /install.

How to fix this?

surefyre