Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.0.1, 5.5.29
-
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
- is duplicated by
-
MDEV-7302 rpm upgrade error message gives wrong instruction for finding installed packages
-
- Closed
-
- is part of
-
MDEV-22315 MySQL -> MariaDB upgrades
-
- Open
-
-
MDEV-22329 Packages issues when upgrading
-
- Open
-
- relates to
-
MDEV-9584 Upgrading MariaDB 5.5 to 10.1.11 fails with RPM
-
- Stalled
-
Activity
Field | Original Value | New Value |
---|---|---|
Link | This issue relates to TODO-27 [ TODO-27 ] |
Fix Version/s | 5.5.31 [ 12700 ] | |
Fix Version/s | 5.5.30 [ 11800 ] |
Assignee | Colin Charles [ colin ] | Sergei Golubchik [ serg ] |
Fix Version/s | 10.0.3 [ 12900 ] | |
Fix Version/s | 10.0.2 [ 11900 ] |
Fix Version/s | 5.5.32 [ 13000 ] | |
Fix Version/s | 5.5.31 [ 12700 ] |
Fix Version/s | 10.0.4 [ 13101 ] | |
Fix Version/s | 10.0.3 [ 12900 ] |
Assignee | Sergei Golubchik [ serg ] |
Fix Version/s | 5.5.33 [ 13300 ] | |
Fix Version/s | 5.5.32 [ 13000 ] |
Fix Version/s | 10.0.5 [ 13201 ] | |
Fix Version/s | 10.0.4 [ 13101 ] |
Fix Version/s | 5.5.34 [ 13500 ] | |
Fix Version/s | 5.5.33 [ 13300 ] |
Fix Version/s | 5.5.34 [ 13700 ] | |
Fix Version/s | 5.5.33a [ 13500 ] |
Fix Version/s | 10.0.6 [ 13202 ] | |
Fix Version/s | 10.0.5 [ 13201 ] |
Fix Version/s | 10.0.7 [ 14100 ] | |
Fix Version/s | 10.0.6 [ 13202 ] |
Fix Version/s | 5.5.35 [ 14000 ] | |
Fix Version/s | 5.5.34 [ 13700 ] |
Fix Version/s | 10.0.8 [ 14200 ] | |
Fix Version/s | 10.0.7 [ 14100 ] |
Fix Version/s | 5.5.36 [ 14600 ] | |
Fix Version/s | 5.5.35 [ 14000 ] |
Fix Version/s | 10.0.9 [ 14400 ] | |
Fix Version/s | 10.0.8 [ 14200 ] |
Fix Version/s | 5.5.37 [ 15000 ] | |
Fix Version/s | 5.5.36 [ 14600 ] |
Fix Version/s | 10.0.10 [ 14500 ] | |
Fix Version/s | 10.0.9 [ 14400 ] |
Fix Version/s | 10.0.11 [ 15200 ] | |
Fix Version/s | 10.0.10 [ 14500 ] |
Fix Version/s | 5.5.38 [ 15400 ] | |
Fix Version/s | 5.5.37 [ 15000 ] |
Fix Version/s | 10.0.12 [ 15201 ] | |
Fix Version/s | 10.0.11 [ 15200 ] |
Fix Version/s | 5.5.39 [ 15800 ] | |
Fix Version/s | 5.5.38 [ 15400 ] |
Workflow | defaullt [ 26136 ] | MariaDB v2 [ 43882 ] |
Fix Version/s | 10.0.13 [ 16000 ] | |
Fix Version/s | 10.0.12 [ 15201 ] |
Priority | Trivial [ 5 ] | Minor [ 4 ] |
Workflow | MariaDB v2 [ 43882 ] | MariaDB v3 [ 65464 ] |
Link | This issue is part of MDEV-22329 [ MDEV-22329 ] |
Link | This issue is part of MDEV-22315 [ MDEV-22315 ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.0 [ 16000 ] |
Component/s | Packaging [ 10700 ] |
Labels | beginner-friendly |
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 |
Workflow | MariaDB v3 [ 65464 ] | MariaDB v4 [ 139488 ] |
Link |
This issue is part of |
Link |
This issue is part of |
Labels | beginner-friendly | beginner-friendly contribution |
Labels | beginner-friendly contribution | beginner-friendly contribution foundation |
Assignee | Sergey Vojtovich [ svoj ] |
Sprint | Sprint 4 (25.02.2025) [ 786 ] |
Rank | Ranked lower |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Assignee | Sergey Vojtovich [ svoj ] | Sergei Golubchik [ serg ] |
Status | Confirmed [ 10101 ] | In Review [ 10002 ] |
Due Date | 2025-04-01 |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 11.4 [ 29301 ] | |
Fix Version/s | 10.2(EOL) [ 14601 ] |
Assignee | Sergei Golubchik [ serg ] | Vicențiu Ciorbaru [ cvicentiu ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
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 ] |