mysql - how to skip duplicate records when importing in phpmyadmin -
i have db on local machine , want import data db on hosting. both db's identical, same table names
, column names
, etc.
when export
table local db through phpmyadmin
, import
through phpmyadmin on hosting error pops telling me there duplicate entries primary key
, stops whole operation.
how can import data through phpmyadmin, skip duplicate entries, , display list of duplicates @ end of process?
a solution can call values of primary key in db @ hosting , filter duplicates before import. wondering if there quick solution phpmyadmin?
in phpmyadmin , in settings tab, can try checking following values:
- settings -> sql queries -> ignore multiple statement errors
if using csv format:
- settings -> import -> csv -> not abort on insert error
if using sql format:
- settings -> export -> sql -> use ignore inserts
Comments
Post a Comment