安装了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

相关文章

Spring Boot整合Redis注解实现增删改查功能(Redis注解使用)

《SpringBoot整合Redis注解实现增删改查功能(Redis注解使用)》文章介绍了如何使用SpringBoot整合Redis注解实现增删改查功能,包括配置、实体类、Repository、Se... 目录配置Redis连接定义实体类创建Repository接口增删改查操作示例插入数据查询数据删除数据更

Mysql数据库聚簇索引与非聚簇索引举例详解

《Mysql数据库聚簇索引与非聚簇索引举例详解》在MySQL中聚簇索引和非聚簇索引是两种常见的索引结构,它们的主要区别在于数据的存储方式和索引的组织方式,:本文主要介绍Mysql数据库聚簇索引与非... 目录前言一、核心概念与本质区别二、聚簇索引(Clustered Index)1. 实现原理(以 Inno

sqlserver、mysql、oracle、pgsql、sqlite五大关系数据库的对象名称和转义字符

《sqlserver、mysql、oracle、pgsql、sqlite五大关系数据库的对象名称和转义字符》:本文主要介绍sqlserver、mysql、oracle、pgsql、sqlite五大... 目录一、转义符1.1 oracle1.2 sqlserver1.3 PostgreSQL1.4 SQLi

使用python生成固定格式序号的方法详解

《使用python生成固定格式序号的方法详解》这篇文章主要为大家详细介绍了如何使用python生成固定格式序号,文中的示例代码讲解详细,具有一定的借鉴价值,有需要的小伙伴可以参考一下... 目录生成结果验证完整生成代码扩展说明1. 保存到文本文件2. 转换为jsON格式3. 处理特殊序号格式(如带圈数字)4

Java使用Swing生成一个最大公约数计算器

《Java使用Swing生成一个最大公约数计算器》这篇文章主要为大家详细介绍了Java使用Swing生成一个最大公约数计算器的相关知识,文中的示例代码讲解详细,感兴趣的小伙伴可以了解一下... 目录第一步:利用欧几里得算法计算最大公约数欧几里得算法的证明情形 1:b=0情形 2:b>0完成相关代码第二步:加

win10安装及配置Gradle全过程

《win10安装及配置Gradle全过程》本文详细介绍了Gradle的下载、安装、环境变量配置以及如何修改本地仓库位置,通过这些步骤,用户可以成功安装并配置Gradle,以便进行项目构建... 目录一、Gradle下载1.1、Gradle下载地址1.2、Gradle下载步骤二、Gradle安装步骤2.1、安

Java中流式并行操作parallelStream的原理和使用方法

《Java中流式并行操作parallelStream的原理和使用方法》本文详细介绍了Java中的并行流(parallelStream)的原理、正确使用方法以及在实际业务中的应用案例,并指出在使用并行流... 目录Java中流式并行操作parallelStream0. 问题的产生1. 什么是parallelS

MySQL数据库双机热备的配置方法详解

《MySQL数据库双机热备的配置方法详解》在企业级应用中,数据库的高可用性和数据的安全性是至关重要的,MySQL作为最流行的开源关系型数据库管理系统之一,提供了多种方式来实现高可用性,其中双机热备(M... 目录1. 环境准备1.1 安装mysql1.2 配置MySQL1.2.1 主服务器配置1.2.2 从

Linux join命令的使用及说明

《Linuxjoin命令的使用及说明》`join`命令用于在Linux中按字段将两个文件进行连接,类似于SQL的JOIN,它需要两个文件按用于匹配的字段排序,并且第一个文件的换行符必须是LF,`jo... 目录一. 基本语法二. 数据准备三. 指定文件的连接key四.-a输出指定文件的所有行五.-o指定输出

Linux jq命令的使用解读

《Linuxjq命令的使用解读》jq是一个强大的命令行工具,用于处理JSON数据,它可以用来查看、过滤、修改、格式化JSON数据,通过使用各种选项和过滤器,可以实现复杂的JSON处理任务... 目录一. 简介二. 选项2.1.2.2-c2.3-r2.4-R三. 字段提取3.1 普通字段3.2 数组字段四.