LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-19-2012, 08:48 AM   #1
surferboy
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
mysql import without overwriting existing data


I have a mysqldump of an entire database

I want to import that into a database on a different server

The new database already has data in it

how can I import the data that is not there and not tinker with the existing data?
 
Old 12-19-2012, 08:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
just strip out the dump and only save the INSERT INTO lines.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Import data from MySQL to MSSQL xeon123 Linux - General 2 05-06-2010 11:32 AM
Import data from a spreadsheet to a mysql database deostroll Linux - General 1 08-21-2009 06:00 PM
import data back to mysql alaios Linux - General 2 02-27-2007 08:52 AM
import data to mysql server alaios Linux - Software 1 05-25-2005 12:37 AM
mysql data import bijuhpd Linux - Newbie 1 03-05-2005 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration