安装了virtualmin/webmin后,使用 yum 安装 mysql 报错

2024-01-23 09:08

本文主要是介绍安装了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 报错的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/635904

相关文章

详解Vue如何使用xlsx库导出Excel文件

《详解Vue如何使用xlsx库导出Excel文件》第三方库xlsx提供了强大的功能来处理Excel文件,它可以简化导出Excel文件这个过程,本文将为大家详细介绍一下它的具体使用,需要的小伙伴可以了解... 目录1. 安装依赖2. 创建vue组件3. 解释代码在Vue.js项目中导出Excel文件,使用第三

SQL注入漏洞扫描之sqlmap详解

《SQL注入漏洞扫描之sqlmap详解》SQLMap是一款自动执行SQL注入的审计工具,支持多种SQL注入技术,包括布尔型盲注、时间型盲注、报错型注入、联合查询注入和堆叠查询注入... 目录what支持类型how---less-1为例1.检测网站是否存在sql注入漏洞的注入点2.列举可用数据库3.列举数据库

Linux之软件包管理器yum详解

《Linux之软件包管理器yum详解》文章介绍了现代类Unix操作系统中软件包管理和包存储库的工作原理,以及如何使用包管理器如yum来安装、更新和卸载软件,文章还介绍了如何配置yum源,更新系统软件包... 目录软件包yumyum语法yum常用命令yum源配置文件介绍更新yum源查看已经安装软件的方法总结软

linux报错INFO:task xxxxxx:634 blocked for more than 120 seconds.三种解决方式

《linux报错INFO:taskxxxxxx:634blockedformorethan120seconds.三种解决方式》文章描述了一个Linux最小系统运行时出现的“hung_ta... 目录1.问题描述2.解决办法2.1 缩小文件系统缓存大小2.2 修改系统IO调度策略2.3 取消120秒时间限制3

Linux alias的三种使用场景方式

《Linuxalias的三种使用场景方式》文章介绍了Linux中`alias`命令的三种使用场景:临时别名、用户级别别名和系统级别别名,临时别名仅在当前终端有效,用户级别别名在当前用户下所有终端有效... 目录linux alias三种使用场景一次性适用于当前用户全局生效,所有用户都可调用删除总结Linux

java图像识别工具类(ImageRecognitionUtils)使用实例详解

《java图像识别工具类(ImageRecognitionUtils)使用实例详解》:本文主要介绍如何在Java中使用OpenCV进行图像识别,包括图像加载、预处理、分类、人脸检测和特征提取等步骤... 目录前言1. 图像识别的背景与作用2. 设计目标3. 项目依赖4. 设计与实现 ImageRecogni

python管理工具之conda安装部署及使用详解

《python管理工具之conda安装部署及使用详解》这篇文章详细介绍了如何安装和使用conda来管理Python环境,它涵盖了从安装部署、镜像源配置到具体的conda使用方法,包括创建、激活、安装包... 目录pytpshheraerUhon管理工具:conda部署+使用一、安装部署1、 下载2、 安装3

Mysql虚拟列的使用场景

《Mysql虚拟列的使用场景》MySQL虚拟列是一种在查询时动态生成的特殊列,它不占用存储空间,可以提高查询效率和数据处理便利性,本文给大家介绍Mysql虚拟列的相关知识,感兴趣的朋友一起看看吧... 目录1. 介绍mysql虚拟列1.1 定义和作用1.2 虚拟列与普通列的区别2. MySQL虚拟列的类型2

使用MongoDB进行数据存储的操作流程

《使用MongoDB进行数据存储的操作流程》在现代应用开发中,数据存储是一个至关重要的部分,随着数据量的增大和复杂性的增加,传统的关系型数据库有时难以应对高并发和大数据量的处理需求,MongoDB作为... 目录什么是MongoDB?MongoDB的优势使用MongoDB进行数据存储1. 安装MongoDB

关于@MapperScan和@ComponentScan的使用问题

《关于@MapperScan和@ComponentScan的使用问题》文章介绍了在使用`@MapperScan`和`@ComponentScan`时可能会遇到的包扫描冲突问题,并提供了解决方法,同时,... 目录@MapperScan和@ComponentScan的使用问题报错如下原因解决办法课外拓展总结@