Closed joachim-n closed 2 years ago
The problem is not the drop tables, but the deletion of the volume, as this is basically the same as doing rm -rf /var/lib/mysql/*
Usually you drop the db-volume only when there's a problem with your db and then just run phab -cmbb install:from xxx
(which will recreate the database if it does not exist)
in 3.6 this will be complicated to add, but maybe in 3.7 as we are currently refactoring the complete database handling ... Thanks for the suggestion.
Because mysql was failing to start, I removed the volume with
docker volume rm occhio-cms-be_db-data
.When I then did
phab copy-from
to get a clean copy of the DB, it crashed with this:It would be useful if the copy-from command handled this by skipping the DROP TABLES and creating the empty DB.