I\'m wondering if there is any way in mysqldump to add the appropriate create table option [IF NOT EXISTS]. Any ideas?
The sed will be much faster without the 'g' (global) at its end:
eg:
mysqldump -e | sed 's/^CREATE TABLE /CREATE TABLE IF NOT EXISTS /' > .sql