Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8259725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:55:50+00:00 2026-06-08T02:55:50+00:00

I have two servers that share an original ancestor codebase, but which have changed

  • 0

I have two servers that share an original ancestor codebase, but which have changed during the past couple of months in terms of database schema (I’m using mysql). I’m about to use the second one as my new production server, but I have to update the data (there are new users, there’s new data related to those users, etc.). I want the data in the server that’s now live, but has the old schema to have the authority, yet I want the schema in the new one to be the final one. So it’s kind of a weird merge: I want data from the old server to be imported into a new server with a (not vastly) different schema.

I was thinking of simply making a dump of the server with the most up-to-date data, but then loading it wouldn’t work since the schema has changed quite a bit.

I was also thinking on dumping the schema of the new server, applying it to a copy of the old one, then dumping the data from the latter and loading it into the new one, but I’m not sure how to go about doing that and if it’s the safest option.

I develop on mac OS X and both of my servers are debian.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T02:55:51+00:00Added an answer on June 8, 2026 at 2:55 am

    Applying the schema from the new server to the old and then migrating data is the safest option, largely because it forces you to evaluate what specifically has changed and what you want to do about that in terms of data (e.g., where a new column is added, what do you want to put in it)?

    Since you mentioned the schemata are not massively different, simply doing a mysqldump without data (i.e., tables only) of each server and manually comparing (e.g., with diff) would tell you what columns are different. You can then apply those changes with ALTER on the old database.

    It’s all a little kludgy, but then ultimately there isn’t really a non-kludgy way of doing this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables: servers and stats servers has a column called id that
I have apache httpd that I want to proxy to two different tomcat servers.
Can I share PHP code between two servers? For e.g. say I have a
I have two websites that will share some resources, lets say, index.php, functions.js and
I have two servers with Apache Tomcat that once in a while, connect to
I have two different databases that share some of the same tables, and differ
I have two django sites that use the same database and share some of
I have two simple programs set up that share data through a unix domain
I have two tomcat web applications that need to share information using a singleton.
We have a website load balanced across two servers that calls into a WCF

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.