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?
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.
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.
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.