WordPress.org

Ready to get started?Download WordPress

Forums

WP Migrate DB
[resolved] duplicate insert rows for attachments (3 posts)

  1. Paul de Wouters
    Human Made
    Posted 1 year ago #

    Hi

    I downloaded the sql file to import into a local DB, but I got a duplicate key error on the primary key.
    the export file had a bunch of duplicate insert into statements for attachment rows.

    http://wordpress.org/extend/plugins/wp-migrate-db/

  2. Brad Touesnard
    Member
    Plugin Author

    Posted 1 year ago #

    Did the database contained a view by any chance? This might have caused a duplicate key error.

    There was a bug just fixed in version 0.4.3 that excludes views from being exported: https://github.com/bradt/wp-migrate-db/issues/3

  3. Brad Touesnard
    Member
    Plugin Author

    Posted 1 year ago #

    Also, if you can send me a copy of your database, I could get to the bottom of this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.