พอใช้คำสั่งนี้
rpm -ivh MySQL-server-5.1.26-0.glibc23.i386.rpm --nodeps --force
Preparing... ########################################### [100%]
******************************************************************
A MySQL server package (MySQL-server-5.1.26-0.glibc23) is installed.
The current MySQL server package is provided by a different
vendor (warning: cannot get shared lock on /var/lib/rpm/Packages
MySQL AB) than MySQL AB. Some files may be installed
to different locations, including log files and the service
startup script in /etc/init.d/.
Upgrading directly from MySQL <unrecognized version warning: cannot get shared lock on /var/lib/rpm/Packages
5.1.26> 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 MySQL AB
- 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-5.1.26-0.glibc23.i386) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping MySQL-server-5.1.26-0.glibc23
จะแก้ยังไงดีคับเนี่ย