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 3787628
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:52:14+00:00 2026-05-19T11:52:14+00:00

I am in the process of updating a live database, by adding new tables.

  • 0

I am in the process of updating a live database, by adding new tables.

Is there a way, if these updates go wrong, to restore the original?

Thanks

  • 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-05-19T11:52:15+00:00Added an answer on May 19, 2026 at 11:52 am

    If you’re going to be altering a live database, then you really need to do a backup before you start, ideally after you’ve removed access from any front-end web site, etc. so that there’s no “active” database activity. (This is less of an issue if you use InnoDB rather than MyISAM tables, that said.) Additionally, you should ideally prevent all access to the database whilst you’re carrying out an alterations, as otherwise changes may be lost if you have to roll the database back to its previous state.

    To create a backup the easiest solution is to use the mysqldump command line tool that’s bundled with MySQL. This will create a text file that you can use the restore the database to its original state.

    As a hint, you might want to take special notice of the “–add-drop-table” option as this will prove useful if you want to stomp over whatever’s there with the contents of the backup file. (N.B.: This will of course wipe out ALL the “current” data.)

    Finally, if you’re going to be making any significant changes then you really want to:

    1. Create a script that carries out all the required ALTERs, etc. (You can then execute the script from the command line via “mysql < [text file name]“.)

    2. Use mysqldump to dump the current contents of the database and then set up a test database with this data so you can ensure your changes actually work as expected.

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

Sidebar

Related Questions

I am in the process of updating some tables in my database and I
I have an onchange event that updates a form, and in the updating process
We have a process updating the database which uses the following SQL IF NOT
In the process of updating a web app from ASP to ASP.NET, I want
I'm in the process of updating some old CSS files in our systems, and
I'm currently in the process of updating a site from preview 2 of ASP.NET
We’re currently in the process of updating the email dispatch part of our application
Process process = new Process(); ProcessStartInfo psi = new ProcessStartInfo(@C:/PsExec.exe); psi.UseShellExecute = false; psi.RedirectStandardOutput
A process to quickly detect whether there is data in a given worksheet or
I'm in the process of updating an existing application that currently can only be

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.