I’ve recently run into a situation helping another individual who overwrote their site folder when installing a new copy of WordPress. The original wordpress database is still intact and when attempting to update the connection string in the wp-config.php file it does connect to the old database but just brings me to the setup page (/wp-admin/install.php). It doesnt appear to be recognizing any of the database tables that already exist. Is there a solution to get around this?
Read more here: Issue connecting new wordpress install to pre-existing database