Reputation: 599
Is there any queries to perform this using information schema ?
To make the things easier i imported the development DB from development server and uploaded in the live db with different name . Now both the DB are in the same server but with diff name. E.g. sitedb , sitedevdb
Upvotes: 1
Views: 1953
Reputation: 13110
Whenever you update the development DB with changes that will eventually be put live, you should write a .sql
script that will repeat the changes on the live database.
Otherwise this operation is super-tricky.. you may have to manually figure out the added columns yourself, or you may be able to use each INFORMATION_SCHEMA.COLUMNS
to compare the old tables.
For the new tables SHOW CREATE **table_name**
is really useful.
Upvotes: 2