I exported 2 identical databases(identical in terms of names and structures of tables) into two .sql files using mysqldump. I want to merge them into one file. However, both the
If you do not want to make dump once again and you are using Linux you can go with:
awk '!/^DROP TABLE IF EXISTS/{print}' | mysql
If you want to dump data once again you should pass --skip-add-drop-table to mysqldump utility.
--skip-add-drop-table