WordPress.org

Ready to get started?Download WordPress

Forums

"Drop table" command not working in MySQL (3 posts)

  1. davidrothman
    Member
    Posted 9 years ago #

    Groan! The drop table command doesn’t truly clear away tables from an existing WordPress database, so that I can import identically named tables to bring the database up to date at my blog's new virtual home.

    To-be-imported data comes out of a dump in verson 4.0.24, while the destination database is 4.0.17 at least. So a version clash isn't the problem, is it? I’m hoping I’m just overlooking something obvious, so that there’ll be an easy fix.

    When I do drop table commands, MySQL says I've succeeded. But then when I try an import again, I get an error message protesting that there is an identical table--usually wp_categories.

    I've even deleted the WP-related database from the new server--and yet still see an error message re an unwanted ghost table.

    What's going on? Is WP refreshing tables behind my back? Or is a cache at my new Web host doing something evil?

    Just to anticipate questions, the new host apparently does not include a GUI-style MySQL admin tool.

    I suppose I could try workarounds, but I'd rather get at the root of the problem--for the sake of safety and integrity of my database.

    Thanks,
    David Rothman | TeleRead.org | 703-370-6540
    Blog (existing host): http://www.teleread.org/blog

  2. Kafkaesqui

    Posted 9 years ago #

    I don't know of any 'database caching' for MySQL that would cause this. This will seem like salt in the wound, but are you ABSOLUTELY certain you're accessing the correct database?

    Anyway, one thing to try: change the $table_prefix variable in wp-config.php to something else, say 'tr_', and try to install again.

  3. davidrothman
    Member
    Posted 9 years ago #

    This is good stuff. Will try. I'll also welcome more suggestions from you and others. Results ahead of vanity! Thanks. DR

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.