Skip navigation.
Home
Freeware and Free & Open Source Software for Proprietary OSes

Reply to comment

In MySQL and other SQL

In MySQL and other SQL database servers, a equivalent to "clean" is a precaution in case there is an existing database that you want to replace. However, if the database does not exist, the restore just goes ahead as expected. In other words, it works both ways. Here's the MySQL use case: You make a regular data dumps and have it include the equivalent to clean. If you restore a database back to the same server, it would overwrite the existing database. However, if you restore the same dump on a new machine running MySQL, it would detect that the database is not there but continue on and restore the database. In pgsql, it failed when it did not detect a pre-existing database.

Reply

The content of this field is kept private and will not be shown publicly.