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

相关文章

SQL中的外键约束

外键约束用于表示两张表中的指标连接关系。外键约束的作用主要有以下三点: 1.确保子表中的某个字段(外键)只能引用父表中的有效记录2.主表中的列被删除时,子表中的关联列也会被删除3.主表中的列更新时,子表中的关联元素也会被更新 子表中的元素指向主表 以下是一个外键约束的实例展示

基于MySQL Binlog的Elasticsearch数据同步实践

一、为什么要做 随着马蜂窝的逐渐发展,我们的业务数据越来越多,单纯使用 MySQL 已经不能满足我们的数据查询需求,例如对于商品、订单等数据的多维度检索。 使用 Elasticsearch 存储业务数据可以很好的解决我们业务中的搜索需求。而数据进行异构存储后,随之而来的就是数据同步的问题。 二、现有方法及问题 对于数据同步,我们目前的解决方案是建立数据中间表。把需要检索的业务数据,统一放到一张M

Zookeeper安装和配置说明

一、Zookeeper的搭建方式 Zookeeper安装方式有三种,单机模式和集群模式以及伪集群模式。 ■ 单机模式:Zookeeper只运行在一台服务器上,适合测试环境; ■ 伪集群模式:就是在一台物理机上运行多个Zookeeper 实例; ■ 集群模式:Zookeeper运行于一个集群上,适合生产环境,这个计算机集群被称为一个“集合体”(ensemble) Zookeeper通过复制来实现

CentOS7安装配置mysql5.7 tar免安装版

一、CentOS7.4系统自带mariadb # 查看系统自带的Mariadb[root@localhost~]# rpm -qa|grep mariadbmariadb-libs-5.5.44-2.el7.centos.x86_64# 卸载系统自带的Mariadb[root@localhost ~]# rpm -e --nodeps mariadb-libs-5.5.44-2.el7

Centos7安装Mongodb4

1、下载源码包 curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.2.1.tgz 2、解压 放到 /usr/local/ 目录下 tar -zxvf mongodb-linux-x86_64-rhel70-4.2.1.tgzmv mongodb-linux-x86_64-rhel70-4.2.1/

如何去写一手好SQL

MySQL性能 最大数据量 抛开数据量和并发数,谈性能都是耍流氓。MySQL没有限制单表最大记录数,它取决于操作系统对文件大小的限制。 《阿里巴巴Java开发手册》提出单表行数超过500万行或者单表容量超过2GB,才推荐分库分表。性能由综合因素决定,抛开业务复杂度,影响程度依次是硬件配置、MySQL配置、数据表设计、索引优化。500万这个值仅供参考,并非铁律。 博主曾经操作过超过4亿行数据

中文分词jieba库的使用与实景应用(一)

知识星球:https://articles.zsxq.com/id_fxvgc803qmr2.html 目录 一.定义: 精确模式(默认模式): 全模式: 搜索引擎模式: paddle 模式(基于深度学习的分词模式): 二 自定义词典 三.文本解析   调整词出现的频率 四. 关键词提取 A. 基于TF-IDF算法的关键词提取 B. 基于TextRank算法的关键词提取

使用SecondaryNameNode恢复NameNode的数据

1)需求: NameNode进程挂了并且存储的数据也丢失了,如何恢复NameNode 此种方式恢复的数据可能存在小部分数据的丢失。 2)故障模拟 (1)kill -9 NameNode进程 [lytfly@hadoop102 current]$ kill -9 19886 (2)删除NameNode存储的数据(/opt/module/hadoop-3.1.4/data/tmp/dfs/na

Hadoop数据压缩使用介绍

一、压缩原则 (1)运算密集型的Job,少用压缩 (2)IO密集型的Job,多用压缩 二、压缩算法比较 三、压缩位置选择 四、压缩参数配置 1)为了支持多种压缩/解压缩算法,Hadoop引入了编码/解码器 2)要在Hadoop中启用压缩,可以配置如下参数

Makefile简明使用教程

文章目录 规则makefile文件的基本语法:加在命令前的特殊符号:.PHONY伪目标: Makefilev1 直观写法v2 加上中间过程v3 伪目标v4 变量 make 选项-f-n-C Make 是一种流行的构建工具,常用于将源代码转换成可执行文件或者其他形式的输出文件(如库文件、文档等)。Make 可以自动化地执行编译、链接等一系列操作。 规则 makefile文件