I use this query to import data using MySQL Dump (Command Prompt / Command Line)
mysql -u root -p database_name < database_name.sql
I want to import the large database (only new deltas) as of now I drop database and re-import but I want to import only new deltas.
Best Answer
I have four(4) suggestions:
SUGGESTION #1 : Recreate dump with
INSERT IGNORE
Use --insert-ignore
What happens on reload ???
SUGGESTION #2 : Change
INSERT
toINSERT IGNORE
on reloadInstead of loading normally
just pipe the dump into sed and reload like this:
SUGGESTION #3 : Recreate dump with
REPLACE INTO
Use --replace
What happens on reload ???
SUGGESTION #4 : Change
INSERT INTO
toREPLACE INTO
on reloadInstead of loading normally
just pipe the dump into sed and reload like this:
SUMMARY
GIVE IT A TRY !!!