Score:0

18.04 LTS -> 20.04 LTS leaves mysql broken. Unsupported upgrade path

in flag

https://dev.mysql.com/doc/refman/8.0/en/upgrade-paths.html I had v18 LTS, just upgraded to v20 LTS, and the version jumps for MySQL are not supported. I'm now stuck with mysql shutting down, because INNODB tables can't be upgraded.

[ERROR] [MY-013168] [InnoDB] Cannot upgrade server earlier than 5.7 to 8.0

What are my options?

Score:2
in flag

You have a few options in front of you:

  1. Wipe MySQL clear off the system, remembering to delete the /etc/mysql directory as well, then reinstall and restore from the most recent backup
  2. Fire up a VM, install MySQL 5.7 (yes, 5.7), stop the database, copy your existing /etc/mysql files to the VM's data directory, start MySQL and have it upgrade your tables, then:
    1. use mysqldump to extract the data and load that into your 20.04 installation, or …
    2. upgrade the VM to MySQL 8.0, then copy the newly updated data files to your 20.04 installation
  3. Fire up a Docker container for an instance of MySQL between the version you were running and the most recent 5.7, and just run your database from there

There are a few other options, but they're more work and do not offer any perceivable benefits over the three options above. Generally when I've had to deal with this sort of situation, Option 2 has been the fastest path to success.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.