Jump to content

Recommended Posts

Hi All,

 

my apologies if this isn't supposed to be on this forum - but the site i've designed is PhP and mySQL (the two most awesomest languages/platforms in the world;)). My website has been going for a while but i've just finished writing some major upgrades. This has involved changing a couple of database tables to add columns, adding new tables etc.

 

The trouble i'm having is finding out how to preserve the data in the current live database and migrate it into the new database. As the tables have been modified, i assume it's not as simple as a sqldump then upload.

 

Sorry if this is confusing, but any advice is appreciated.

 

Chris

Link to comment
https://forums.phpfreaks.com/topic/164576-managing-mysql-data-between-versions/
Share on other sites

Yoyoyo MrAdam.

 

so even if a table structure has changed, if i just 'insert' the records i dumped from version-old into version-new, it'll know where to put the data?

 

Maaaaaaaaan... my respect for mySQL just goes up and up... ORACLE has got to stop being so prudish!

Whoops, I mis-read the title, thought it said "migrating". Erm no, not so easy. You'd probably be better creating a custom mysql_query function that will run it on both databases. Why does it need to be on 2  by the way? Would perhaps not hourly, daily or weekly backups not do the trick?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.