本文主要是介绍安装了virtualmin/webmin后,使用 yum 安装 mysql 报错,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
原因:是安装virtualmin/webmin,自动安装了i386,x86_64版本的mysql,导致无法更新。
[root@webhosting999 ~]# rpm -qa|grep mysql --查看已安装的Mysql
mysql-5.0.77-4.el5_5.3
mysql-server-5.0.77-4.el5_5.3
mysql-devel-5.0.77-4.el5_5.3
mysql-5.0.77-4.el5_5.3
php-mysql-5.1.6-27.el5
mysql-devel-5.0.77-4.el5_5.3
使用 update php 5.2.14-jason 更新:
Transaction Check Error:
file /etc/my.cnf from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/man/man1/my_print_defaults.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/man/man1/mysql.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/man/man1/mysql_config.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/man/man1/mysql_find_rows.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/man/man1/mysql_waitpid.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/man/man1/mysqlaccess.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/man/man1/mysqladmin.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/man/man1/mysqldump.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/man/man1/mysqlshow.1.gz from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/charsets/Index.xml from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/charsets/cp1250.xml from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/czech/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/danish/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/dutch/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/english/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/estonian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/french/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/german/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/greek/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/italian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/japanese/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/korean/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/polish/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/romanian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/russian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/serbian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/slovak/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/spanish/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/swedish/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-5.1.50-jason.1.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
Error Summary
卸载mysql-5.0.77-4.el5_5.3.i386 --请先备份好数据库,以免操作失误,导致数据丢失。
[root@webhosting138 ~]# rpm -e --nodeps mysql-5.0.77-4.el5_5.3.i386
[root@webhosting138 ~]# rpm -e --nodeps mysql-server-5.0.77-4.el5_5.3.i386
再次运行#yum update -y php --按照update php 5.2.14-jason下部分操作。
如果不行(phpMyAdmin无法检查到php-mysql扩展),就先卸载全部的mysql,先安装mysql,在执行更新php。
#rpm -e 卸载mysql,具体先查询安装的mysql版本
#yum install -y mysql*5.1.50
注意:升级完成后要记得'mysql_upgrade',否则无法webmin正常使用mysql
******************************************************************************
* If this is a new installation you should run 'mysql_secure_installation'. *
* *
* If you are upgrading from a previous version of MySQL you should run the *
* 'mysql_upgrade' script to check your tables and update them to the newest *
* format. This command may take a long time to run if you have large tables. *
******************************************************************************
这篇关于安装了virtualmin/webmin后,使用 yum 安装 mysql 报错的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!