Jump to content

[SOLVED] PHPMyAdmin MYSQL DB Structure Update Without Overwriting Data


dlebowski

Recommended Posts

Hello.  I have been using mysql and phpmyadmin for quite a while and came across a question the other day that I couldn't answer.  Is it possible to import in a new database structure (i.e. - i added some new tables, and modified other tables) without overriding the existing database data?  Basically I have a number of different databases that all have the same structure.  If I update the database structure, it would be much easier to be able to import the new structure without compromising the existing data.  Please let me know if anyone is aware of a way to do this.  Thanks.

 

Ryan

Link to comment
Share on other sites

The only way you would mess up existing data is if you actually UPDATE those tables.  If you add new tables, then your old tables don't get touched.

 

Hard to tell exactly what you are asking.

Link to comment
Share on other sites

I am referring to the import feature in phpmyadmin.  Sorry I'm unclear.  I'm not good with explaining myself on here. 

 

If I am in phpmyadmin, can I use that import feature to import new db structures without overwriting the existing data?

Link to comment
Share on other sites

I would just want to update the table structure.  The table names would never be different.  It would just be adding new tables or new fields to existing tables. 

 

Basically I have my development database and then my "live" databases.  I want to make changes to the development database structure, export it, then import it into the live databases without messing up the existing data in the database.

Link to comment
Share on other sites

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.