Bug #46174 MySQL Upgrade 5.0.41 to 5.1.36 error
Submitted: 14 Jul 2009 15:32 Modified: 15 Jul 2009 6:41
Reporter: vijay karan Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Installing Severity:S2 (Serious)
Version:5.0.41 OS:Linux (RHEL5)
Assigned to: CPU Architecture:Any

[14 Jul 2009 15:32] vijay karan
Description:
[root@icsc sw_mysql]# rpm -Uvh MySQL-server-community-5.1.36-0.rhel5.i386.rpm
Preparing...                ########################################### [100%]

******************************************************************
A MySQL server package (MySQL-server-community-5.0.41-0.rhel5) is installed.

The current MySQL server package is provided by a different
vendor (MySQL AB) than Sun Microsystems, Inc..  Some files may be installed
to different locations, including log files and the service
startup script in /etc/init.d/.

Upgrading directly from MySQL 5.0 to MySQL 5.1 may not
be safe in all cases.  A manual dump and restore using mysqldump is
recommended.  It is important to review the MySQL 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 MySQL-shared-compat package.
- Install the new MySQL packages supplied by Sun Microsystems, Inc.
- Ensure that the MySQL server is started
- Run the 'mysql_upgrade' program

This is a brief description of the upgrade process.  Important details
can be found in the MySQL manual, in the Upgrading section.
******************************************************************
error: %pre(MySQL-server-community-5.1.36-0.rhel5.i386) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping MySQL-server-community-5.1.36-0.rhel5

How to repeat:
N/A
[14 Jul 2009 15:33] vijay karan
Please let me know how to fix it
[15 Jul 2009 6:41] Sveta Smirnova
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments to the original bug instead.

Thank you for your interest in MySQL.

Duplicate of bug #45534
[29 Jul 2009 20:42] Joerg Bruehe
I am working on bug#45534, which addresses this very problem.

I expect to have the fix working in our builds by next week.

Any build started after that should profit from it.