I was wondering how I can get the following file,
mysqldump -h server -u root -p --all-databases > all_dbs.sql
to automatically create any databases that are not yet created, when imported. Also, if a database is already present, it should recreate it (overwriting the old one).
Is this possible? Thanks!
Export: mysqldump -u root -p --all-databases > all_dbs.sql Import: mysql -u root -p < all_dbs.sql
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With