Forums

[resolved] WordPress wants to install after importing database (2 posts)

  1. robahas
    Member
    Posted 6 months ago #

    Hi - I've done this a million times (and perhaps incorrectly): Install wordpress; import a database from a different wordpress installation. Everything works. But now I have one that is not working. I imported the new database and when I went to /wp-admin to login it redirected to install.php and does not recognize the data I have imported to the dabase (and yes, the name etc has been double checked). This is in dreamhost with an automated installation, if that matters.

  2. robahas
    Member
    Posted 6 months ago #

    Here's the answer in case anyone else runs into it. Dreamhost adds a prefix to the database tables. Instad of, for example, wp_options it is wp_something_options. The database I was importing just had the regular wp_ prefix. To address the problem I edited the $table_prefix = 'wp_'; line in wp_config.php so that it matches the prefix of the database I was importing.

Reply

You must log in to post.

About this Topic