Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4151

Error message on an attempt of RPM upgrade from one major version to another mixes up MySQL and MariaDB

Details

    • Sprint 4 (25.02.2025)

    Description

      When RPM/yum upgrade from one major version to another is attempted, it fails with a verbose error message. The text explains why such an upgrade is not recommended and suggests the right way to do it. Sometimes it mentions MySQL instead of MySQL/MariaDB which makes it rather unclear. More importantly, it suggests to find conflicting packages by grepping for 'mysql' which simply doesn't work if the old version is also MariaDB.

      An example of the text generated on upgrade from MariaDB 5.5.29 to MariaDB 10.0.1 is below.

      A MySQL or MariaDB server package (MariaDB-server-5.5.29-1) is installed.
       
      Upgrading directly from MySQL 5.5 to MariaDB 10.0 may not
      be safe in all cases.  A manual dump and restore using mysqldump is
      recommended.  It is important to review the MariaDB manual's Upgrading
      section for version-specific incompatibilities.
       
      A manual upgrade is required.
       
      - Ensure that you have a complete, working backup of your data and my.cnf
        files
      - Shut down the MySQL server cleanly
      - Remove the existing MySQL packages.  Usually this command will
        list the packages you should remove:
        rpm -qa | grep -i '^mysql-'
       
        You may choose to use 'rpm --nodeps -ev <package-name>' to remove
        the package which contains the mysqlclient shared library.  The
        library will be reinstalled by the MariaDB-shared package.
      - Install the new MariaDB packages supplied by Monty Program AB
      - Ensure that the MariaDB server is started
      - Run the 'mysql_upgrade' program
       
      This is a brief description of the upgrade process.  Important details
      can be found in the MariaDB manual, in the Upgrading section.A MySQL or MariaDB server package (MariaDB-server-5.5.29-1) is installed.
       
      Upgrading directly from MySQL 5.5 to MariaDB 10.0 may not
      be safe in all cases.  A manual dump and restore using mysqldump is
      recommended.  It is important to review the MariaDB manual's Upgrading
      section for version-specific incompatibilities.
       
      A manual upgrade is required.
       
      - Ensure that you have a complete, working backup of your data and my.cnf
        files
      - Shut down the MySQL server cleanly
      - Remove the existing MySQL packages.  Usually this command will
        list the packages you should remove:
        rpm -qa | grep -i '^mysql-'
       
        You may choose to use 'rpm --nodeps -ev <package-name>' to remove
        the package which contains the mysqlclient shared library.  The
        library will be reinstalled by the MariaDB-shared package.
      - Install the new MariaDB packages supplied by Monty Program AB
      - Ensure that the MariaDB server is started
      - Run the 'mysql_upgrade' program
       
      This is a brief description of the upgrade process.  Important details
      can be found in the MariaDB manual, in the Upgrading section.

      Attachments

        Issue Links

          Activity

            elenst Elena Stepanova created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.31 [ 12700 ]
            Fix Version/s 5.5.30 [ 11800 ]
            serg Sergei Golubchik made changes -
            Assignee Colin Charles [ colin ] Sergei Golubchik [ serg ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.3 [ 12900 ]
            Fix Version/s 10.0.2 [ 11900 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.32 [ 13000 ]
            Fix Version/s 5.5.31 [ 12700 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.4 [ 13101 ]
            Fix Version/s 10.0.3 [ 12900 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.33 [ 13300 ]
            Fix Version/s 5.5.32 [ 13000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.5 [ 13201 ]
            Fix Version/s 10.0.4 [ 13101 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.34 [ 13500 ]
            Fix Version/s 5.5.33 [ 13300 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.34 [ 13700 ]
            Fix Version/s 5.5.33a [ 13500 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.6 [ 13202 ]
            Fix Version/s 10.0.5 [ 13201 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.7 [ 14100 ]
            Fix Version/s 10.0.6 [ 13202 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.35 [ 14000 ]
            Fix Version/s 5.5.34 [ 13700 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.8 [ 14200 ]
            Fix Version/s 10.0.7 [ 14100 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.36 [ 14600 ]
            Fix Version/s 5.5.35 [ 14000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.9 [ 14400 ]
            Fix Version/s 10.0.8 [ 14200 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.37 [ 15000 ]
            Fix Version/s 5.5.36 [ 14600 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.10 [ 14500 ]
            Fix Version/s 10.0.9 [ 14400 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.11 [ 15200 ]
            Fix Version/s 10.0.10 [ 14500 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.38 [ 15400 ]
            Fix Version/s 5.5.37 [ 15000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.12 [ 15201 ]
            Fix Version/s 10.0.11 [ 15200 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.5.39 [ 15800 ]
            Fix Version/s 5.5.38 [ 15400 ]
            serg Sergei Golubchik made changes -
            Workflow defaullt [ 26136 ] MariaDB v2 [ 43882 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.13 [ 16000 ]
            Fix Version/s 10.0.12 [ 15201 ]
            elenst Elena Stepanova made changes -
            elenst Elena Stepanova made changes -
            Priority Trivial [ 5 ] Minor [ 4 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Workflow MariaDB v2 [ 43882 ] MariaDB v3 [ 65464 ]
            elenst Elena Stepanova made changes -
            anel Anel Husakovic made changes -
            anel Anel Husakovic made changes -
            greenman Ian Gilfillan made changes -
            Fix Version/s 10.2 [ 14601 ]
            Fix Version/s 5.5 [ 15800 ]
            Fix Version/s 10.0 [ 16000 ]
            greenman Ian Gilfillan made changes -
            Component/s Packaging [ 10700 ]
            greenman Ian Gilfillan made changes -
            Labels beginner-friendly
            greenman Ian Gilfillan made changes -
            Summary Error message on an attempt of RPM upgrade from one major version ro another mixes up MySQL and MariaDB Error message on an attempt of RPM upgrade from one major version to another mixes up MySQL and MariaDB
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 65464 ] MariaDB v4 [ 139488 ]
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            svoj Sergey Vojtovich made changes -
            Labels beginner-friendly beginner-friendly contribution
            cvicentiu Vicențiu Ciorbaru made changes -
            Labels beginner-friendly contribution beginner-friendly contribution foundation
            cvicentiu Vicențiu Ciorbaru made changes -
            Assignee Sergey Vojtovich [ svoj ]
            vlad.radu Vlad Radu made changes -
            Sprint Sprint 4 (25.02.2025) [ 786 ]
            vlad.radu Vlad Radu made changes -
            Rank Ranked lower
            svoj Sergey Vojtovich made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            svoj Sergey Vojtovich made changes -
            Assignee Sergey Vojtovich [ svoj ] Sergei Golubchik [ serg ]
            Status Confirmed [ 10101 ] In Review [ 10002 ]
            svoj Sergey Vojtovich made changes -
            Due Date 2025-04-01
            serg Sergei Golubchik made changes -
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 11.4 [ 29301 ]
            Fix Version/s 10.2(EOL) [ 14601 ]
            cvicentiu Vicențiu Ciorbaru made changes -
            Assignee Sergei Golubchik [ serg ] Vicențiu Ciorbaru [ cvicentiu ]
            cvicentiu Vicențiu Ciorbaru made changes -
            Status In Review [ 10002 ] Stalled [ 10000 ]
            cvicentiu Vicențiu Ciorbaru made changes -
            Component/s Documentation [ 10903 ]
            Fix Version/s 10.5.29 [ 29996 ]
            Fix Version/s 10.6.22 [ 29997 ]
            Fix Version/s 10.11.12 [ 29998 ]
            Fix Version/s 11.4.6 [ 29999 ]
            Fix Version/s 11.8.2 [ 30001 ]
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 11.4 [ 29301 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]

            People

              cvicentiu Vicențiu Ciorbaru
              elenst Elena Stepanova
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.