Two diferent time mysql databases with same uniqueid autoincrement values need to be merged
INSERT INTO new_table
    (id, ...)
    SELECT id + 1000, ...
        FROM old_table;

This assumes the target table has ids no larger than 1000; adjust if needed.