WordPress.org

Support

Support » How-To and Troubleshooting » MySql export types

MySql export types

  • Hi

    I want to make a backup of the MySql database using PhpMyAdmin. I am given the choice between 3 export types: INSERT, UPDATE, REPLACE. I have no idea what they mean and which one to choose. What would you recommend?
    (
    As you probably have guessed I know close to nothing about PHP / MySQL…)

    Thanks –

    Halina – Denmark

Viewing 3 replies - 1 through 3 (of 3 total)
  • This should have the information you need:
    http://codex.wordpress.org/Backing_Up_Your_Database

    I’ve read the chapter on Using phpMyAdmin however it does not mention anything about export types nor what they mean… :-((

    I just received an explanation from my Danish host provider. I include it here, in case anyone else wants to know:

    When you do an export, a sql script is being generated, to be used when recovering your database. Here’s how the 3 types work:

    Insert: Inserts records from the exported file (regardless if they’re in the database already or not).

    Update: Updates those records that are in the database already. This means that if a field is empty it will be updates – if it’s not empty then it won’t be affected by the exported record.

    Replace: Overwrites the records that are in the database, but does not insert records that have been deleted.

    Insert is recommended in most cases (and is defaut too).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘MySql export types’ is closed to new replies.
Skip to toolbar