Nicholas Gerrer
Nicholas Gerrer

Reputation: 43

Issue connecting new wordpress install to pre-existing database

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?

Upvotes: 1

Views: 2477

Answers (1)

jezzah
jezzah

Reputation: 91

Make sure that the $table_prefix in your wp-config.php file matches the actual prefix of your database tables.

Upvotes: 3

Related Questions