Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5530

schmoukiz on "Default tables added in DB with iif_ prefix after backup restore"

$
0
0

Hello,
I've used the SQL file to restore a blog for somebody. At that state it had just the fresh instal content with the "Hello, world!" typical article.

I deleted all the tables to prevent an overlap, and imported the SQL. The result was I got an install page, which asked me to enter blog title and database configuration. Which created another set of wordpress tables, but with the prefix iif_, instead of wp_. And again, just the "Hello, world!" single article.

To my surprise, in wp-config file, the table prefix is set to iif_. When I change it to wp_, I get "error establishing a connection with the database". Tried deleting all the "iif_" set of tables, but doesn't help.

The wp_ tables, imported from the SQL files are fine and populated with articles.

So far, I found a trick that did the job :). I deleted the "iif_posts" table and renamed the "wp_posts" into "iif_posts". Which got the expected result: the articles appear on the blog.

I could do the same for comments, users and other stuff, though it takes some time. But this cannot be the normal approach. And could cause conflicts in the future with some pluggins or upgraded files.

What creates these "iif_" tables? Is it a newer version of WP or a bug? and how can you get read of them to do a clean restore from backup.

Thank you!


Viewing all articles
Browse latest Browse all 5530

Trending Articles