If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How to Update duplicate rows upon restoring of DB....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-09-04, 03:54
Emprivo Emprivo is offline
Registered User
 
Join Date: May 2004
Posts: 1
How to Update duplicate rows upon restoring of DB....

Hi,

We update our database on our local server and upload a mysqldump everynight to update the Live database.

Upon running the following commant, I get a "duplicate entry" error:

mysql -u root -p LiveDB < "/home/LocalDump.sql"

What I'd like is the restore to REPLACE duplicate entries (not report an error). I would like it to take the row from my local database backup and replace the rows on the live database. How can I do this?

I am running MySQL 3.23. Please help.

Thanks in advance.

Warm Regards,
Nick
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On