V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
eremiter
V2EX  ›  MySQL

centos7.2 中 mysql 发现有 mariadb,如何卸 mariadb

  •  
  •   eremiter · 2017-02-17 09:57:03 +08:00 · 3850 次点击
    这是一个创建于 2619 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 [root@ywebcn ~]# service mariadb status Redirecting to /bin/systemctl status mariadb.service ● mariadb.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) [root@ywebcn ~]# rpm -e mariadb error: package mariadb is not installed
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2852 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 02:35 · PVG 10:35 · LAX 19:35 · JFK 22:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.