查看: 1512|回复: 1
收起左侧

[软件] centos7.2中mysql与mariadb并存,如何卸mariadb

[复制链接]
eremiter
发表于 2017-2-17 00:05:01 | 显示全部楼层 |阅读模式
本帖最后由 eremiter 于 2017-2-17 00:07 编辑

centos自带mariadb,当初记得有卸掉mariadb,mysql,不知是否命令没写完整,现在安装了mysql5.7。使用phpmyadmin才发现还有marria,但却找不到
请问如何卸载marria,谢谢
提示 您的 PHP MySQL 库版本 5.5.44-MariaDB 与您的 MySQL 服务器版本 5.7.17 不同。这可能导致无法预料的问题。



[root@mywebcn ~]# rpm -Uvh https://dev.mysql.com/get/mysql5 ... se-el7-9.noarch.rpm
Retrieving https://dev.mysql.com/get/mysql5 ... se-el7-9.noarch.rpm
Preparing...                          ################################# [100%]
        package mysql57-community-release-el7-9.noarch is already installed
[root@mywebcn ~]# yum install mysql-community-client
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyuncs.com
* epel: mirrors.aliyuncs.com
* extras: mirrors.aliyuncs.com
* updates: mirrors.aliyuncs.com
* webtatic: us-east.repo.webtatic.com
Package mysql-community-client-5.7.17-1.el7.x86_64 already installed and latest version
Nothing to do
[root@mywebcn ~]# yum list | grep mariadb
mariadb.x86_64                          1:5.5.52-1.el7                 base     
mariadb-bench.x86_64                    1:5.5.52-1.el7                 base     
mariadb-devel.i686                      1:5.5.52-1.el7                 base     
mariadb-devel.x86_64                    1:5.5.52-1.el7                 base     
mariadb-embedded.i686                   1:5.5.52-1.el7                 base     
mariadb-embedded.x86_64                 1:5.5.52-1.el7                 base     
mariadb-embedded-devel.i686             1:5.5.52-1.el7                 base     
mariadb-embedded-devel.x86_64           1:5.5.52-1.el7                 base     
mariadb-libs.i686                       1:5.5.52-1.el7                 base     
mariadb-libs.x86_64                     1:5.5.52-1.el7                 base     
mariadb-server.x86_64                   1:5.5.52-1.el7                 base     
mariadb-test.x86_64                     1:5.5.52-1.el7                 base     
[root@mywebcn ~]# rpm -qa | grep mariadb
[root@mywebcn ~]# ps aux|grep mariadb
root     16674  0.0  0.0 112644   960 pts/1    S+   23:54   0:00 grep --color=auto mariadb
[root@mywebcn ~]# ps aux|grep mysqld
mysql    16401  0.0 18.5 1120252 188388 ?      Sl   22:20   0:02 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
root     16676  0.0  0.0 112644   960 pts/1    S+   23:54   0:00 grep --color=auto mysqld
[root@mywebcn ~]# yum -y remove mariadb
Loaded plugins: fastestmirror
No Match for argument: mariadb
No Packages marked for removal
[root@mywebcn ~]# yum -y remove mariadb*
Loaded plugins: fastestmirror
No Match for argument: mariadb*
No Packages marked for removal
[root@mywebcn ~]# rpm -e mariadb*
error: package mariadb* is not installed

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?快速注册

x
thelord
发表于 2017-2-17 14:38:54 | 显示全部楼层
错误搜一下就有
https://www.v2ex.com/t/197564

评分

参与人数 1经验 +4 收起 理由
woxihuan2011 + 4 感谢提供分享

查看全部评分

您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-4-24 23:41 , Processed in 0.123966 second(s), 18 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表