V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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 · Feb 17, 2017 · 4324 views
    This topic created in 3358 days ago, the information mentioned may be changed or developed.

    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
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4636 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:01 · PVG 18:01 · LAX 03:01 · JFK 06:01
    ♥ Do have faith in what you're doing.