Restore database from backup
Replace the settings.php with the default.settings.php and re-run the installer.

Use the same database credentials and it should detect that there is an existing installation and say the installer cannot continue. However, you should be able to view the site normally once the installer cannot continue.