I mysqldump --all-databases
nightly as a backup. But on importing this dump into a clean installation, I obviously run into a couple issues.
- I obviously can't (and don't want to) overwrite the new information_schema.
- All my users and permissions settings are lost, unless I overwrite the
mysql
database.
What is standard practice in this situation? Parse out information_schema from .sql file before uploading? And do I overwrite the mysql
database or not?