Jump to content

Managing mySQL Data between versions


LordLanky

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.