Skip to main content

Failed Upgrade MySQL 5.6 --> 5.7 -- Now What?

Comments

5 comments

  • cPanelMichael
    Hello @Trane Francks, Can you open a
    0
  • Trane Francks
    Hi, Michael. After a day of client work, I went after this upgrade again this morning. This time, without CloudLinux's MySQL Governor installed, I tried again, but decided to go with MariaDB. Today also failed, but I was able to note which option caused the failure between MariaDB 10.0 to 10.1, at which point the upgrade process failed and the server's databases were now offline. The upgrade complained of unknown option 'skip-federated', which is listed in my.cnf above. Despite the upgrade process claiming that it would repair my.cnf to ensure all options were correct, IT DID NOT. Hence, the failure of MySQL/MariaDB to operate. So, I'm answering my own original question. Are there any incompatibilities? Yes. If you've got skip-federated in your my.cnf, remove it PRIOR to upgrading from MySQL 5.6 to 5.7 or from MariaDB 10.0 to 10.1. The server is happily purring along with MariaDB 10.3 now. This thread can be marked as resolved.
    0
  • cPanelMichael
    Hello @Trane Francks, Thank you for the additional information, and I'm glad to see you were able to solve the issue. I attempted to reproduce this issue by adding the "skip-federated" line to the /etc/my.cnf file prior to upgrading from MySQL version 5.7 to MariaDB version 10.3. However, the existence of this line did not prevent the MySQL upgrade from succeeding, and MariaDB starts well after the upgrade. Do you happen to remember the exact entry that you removed from /etc/my.cnf when you encountered the reported issue? Thank you.
    0
  • Trane Francks
    Michael, The my.cnf from my functioning MySQL 5.6 was listed in the original post. MySQL 5.6 to MariaDB 10.0 succeeded with this original file. MariaDB 10.0 to 10.1 failed with this my.cnf in place. The ONLY change required to make 10.1 through 10.3 succeed was to remove skip-federated from the [mysqld] section of my.cnf.
    0
  • cPanelMichael
    Hello @Trane Francks, I encourage you to submit a defect report using the following link if you'd like us to take a closer look and open an internal case to prevent this from happening in the future: cPanel Customer Portal Let me know the ticket number once it's opened and I'll link this thread to it. Thank you.
    0

Please sign in to leave a comment.