Prepare to install MySQL5.1 on the RedhatLinux system, first uninstall the MySQL version that comes with it. The result is unknown. The same package appears twice, and the versions are the same.
Prepare to install MySQL5.1 on the Redhat Linux system, first uninstall the built-in low version of MySQL. The result is unknown. The same package appears twice, and the versions are the same.
Prepare to install MySQL5.1 on the RedHat Linux system, first uninstall the MySQL version that comes with it. The result is unknown. The same package appears twice, and the versions are the same:
Rpm-qa | grep mysql
Mysqlclient10-3.23.58-4.RHEL4.1
Mysql-4.1.20-2.RHEL4.1
Mysql-4.1.20-2.RHEL4.1
Mysqlclient10-3.23.58-4.RHEL4.1
Try to uninstall:
Rpm e mysqlclient10-3.23.58-4.RHEL4.1
Error: "mysqlclient10-3.23.58-4.RHEL4.1" specifies multiple packages
Through man rpm, we found that-allmatches should be able to solve this problem:
-Allmatches
Remove all versions of the package which match PACKAGE_NAME. Normally an error is issued if PACKAGE_NAME matches
Multiple packages.
Rpm-e -- allmatches mysqlclient10-3.23.58-4.RHEL4.1
Rpm-e -- allmatches mysql-4.1.20-2.RHEL4.1
Warning:/etc/my. cnf saved as/etc/my. cnf. rpmsave
OK. The old MySQL version is uninstalled.