HELP NEEDED: Repair MySQL 8 installation while keeping users and databases

Hello all,

I really need your help. I just ran sudo apt dist-upgrade on my server and now everything is messed up. I’m left with a broken mysql installation. The first error I got when trying to restart the service was that the service was masked. I tried to unmask it with sudo systemctl unmask mysql.service but it has deleted the service completely. I did not backup the databases before doing the upgrade so I really (really) need it back.

Thanks for your help in advance.

Hello @detygon,

I’ll answer you in the PM you sent.