Backed up data/espocrm and data/mysql using an install script (no SQL dump). After restoring the folder, the MySQL container fails to restart. How can I recover or clean up these database files?
Recovering MySQL
Collapse
X
-
What can help:
1. Reuse the backup files, not the files that were in the backup and then you merged them on the new server (or environment). This is a very important point: use the original backup files, because the ones that were built are can be corrupted.
2. In the backup files, you need to go to /data/config-internal.php and find "actualDatabaseVersion" in this file. There will be something like this:
3. Copy the value from this option 8.0.45 and paste it into the docker-compose.yaml file. You need to paste it into the line with image. Most likely it was latest. So instead of latest there should be 8.0.45.Code:'actualDatabaseVersion' => '8.0.45',
4. After saving the changes, you can restart the container.

Comment