Solved

Question related to mysql dump

Posted on 2011-09-20
4
276 Views
Last Modified: 2012-06-12
I have a database already with data in table, if I run the mysql dump command now with data only, will it delete the original data and reload or append to the original data.

Or what is the best to do this process
0
Comment
Question by:Jsara
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 23

Accepted Solution

by:
nemws1 earned 250 total points
ID: 36567995
If you do a data-only dump (no table or database DROP lines), then yes, it should append. (Always back up your database/tables before you attempt to do this!  Just to make sure.)

However, if you have a PRIMARY KEY or an AUTO_INCREMENT field, you'll run into problems, as you'll get collisions.
0
 

Author Comment

by:Jsara
ID: 36575476
Is this the only method that is to empty the data and run the dump to get the lates data.
Are there other ways if you want to load the data periodically.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question