Recovering MySQL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Constik
    Junior Member
    • Feb 2026
    • 1

    #1

    Recovering MySQL

    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?
  • victor
    Active Community Member
    • Aug 2022
    • 1192

    #2
    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:

    Code:
    'actualDatabaseVersion' => '8.0.45',
    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.​

    Click image for larger version

Name:	image.png
Views:	0
Size:	13.1 KB
ID:	126455

    4. After saving the changes, you can restart the container.

    Comment

    Working...