This may sounds like a stupid question but can’t find anything on google, probably using the wrong key words.
Anyway, I have been working on a project – version 1 which has a MySQL Database. I ready to release to version 2 but there are changes to the database tables, e.g. extra columns.
If I backup the current database with the data and create a database with the new structure. How can I add the data from the old database into the new database.
I know there won’t be any problems with the existing data being added to the new database structure as the existing fields haven’t changed, its just extra columns.
Thanks for your help.
I use
mysqldumpwith some addition keys in this case, something likeThat will produce the complete inserts with column names, so you may not to worry about the final table structure, if you did not change the column names, even the order of columns may change in this case.