• Resolved Nith

    (@nith)


    Hello,

    If i delete my current wordpress installation, and replace it with a whole new wordpress installation (and enter the same database details as the old wordpress in the new wp-config file) would i loose all my posts etc?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Jonas Grumby

    (@ss_minnow)

    If you use the same database the old content will still be there unless you drop all of the tables and re-initialize.

    Thread Starter Nith

    (@nith)

    But will it overwrite the existing tables?

    MichaelH

    (@michaelh)

    If you want to delete your old posts, then as SS_Minnow said, DROP your MySQL database tables.

    What is it you are trying to accomplish?

    Note: review WordPress Backups and backup both your files and database before doing anything.

    Jonas Grumby

    (@ss_minnow)

    If you drop all of the tables there will be nothing there to overwrite, but I think Michael is right to ask what you are trying to accomplish because whatever it is there may be an easier and/or less problematic way to do it.

    Thread Starter Nith

    (@nith)

    I want to keep all my posts/data. Just replace the core WordPress files. If i just use the same database details, will WordPress overwrite my existing tables, causing my data to be deleted (which I don’t want)?

    Hope this is clearer.

    MichaelH

    (@michaelh)

    No. Replacing your WordPress files will not override your database. Use FTP to upload the files–see Uploading WordPress to a remote host. Just make sure to save a copy of your wp-config.php just in case because you will want to use that file.

    Again, backup your files and database before beginning then you will have a fallback if something goes wrong. See WordPress Backups

    Thread Starter Nith

    (@nith)

    Thanks Michael. Appreciate it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Question about replacing files and harming database’ is closed to new replies.