centos下mysql最新版终于安装成功!备份一下几个关键地方(二)
2015-07-24 08:15:29
·
作者:
·
浏览: 1
========================================
Package Arch Version Repository Size
================================================================================
Removing:
MySQL-devel x86_64 5.6.19-1.linux_glibc2.5 installed 17 M
MySQL-shared x86_64 5.6.19-1.linux_glibc2.5 @/MySQL-shared-5.6.19-1.linux_glibc2.5.x86_64
7.8 M
MySQL-shared-compat x86_64 5.6.19-1.linux_glibc2.5 @/MySQL-shared-compat-5.6.19-1.linux_glibc2.5.x86_64
11 M
Removing for dependencies:
perl-DBD-MySQL x86_64 4.013-3.el6 @base 338 k
Transaction Summary
================================================================================
Remove 4 Package(s)
Installed size: 36 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : MySQL-devel-5.6.19-1.linux_glibc2.5.x86_64 1/4
Erasing : perl-DBD-MySQL-4.013-3.el6.x86_64 2/4
Erasing : MySQL-shared-compat-5.6.19-1.linux_glibc2.5.x86_64 3/4
Erasing : MySQL-shared-5.6.19-1.linux_glibc2.5.x86_64 4/4
Verifying : MySQL-shared-compat-5.6.19-1.linux_glibc2.5.x86_64 1/4
Verifying : MySQL-devel-5.6.19-1.linux_glibc2.5.x86_64 2/4
Verifying : MySQL-shared-5.6.19-1.linux_glibc2.5.x86_64 3/4
Verifying : perl-DBD-MySQL-4.013-3.el6.x86_64 4/4
Removed:
MySQL-devel.x86_64 0:5.6.19-1.linux_glibc2.5
MySQL-shared.x86_64 0:5.6.19-1.linux_glibc2.5
MySQL-shared-compat.x86_64 0:5.6.19-1.linux_glibc2.5
Dependency Removed:
perl-DBD-MySQL.x86_64 0:4.013-3.el6
Complete!
[root@localhost /]# yum remove MySQL-*
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
No Match for argument: MySQL-*
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Package(s) MySQL-* available, but not installed.
No Packages marked for removal
[root@localhost /]# whereis mysql
mysql: /usr/lib64/mysql
[root@localhost /]# which mysql
/usr/bin/which: no mysql in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/default7/bin)
[root@localhost /]# yum remove MySQL-shared
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
No Match for argument: MySQL-shared
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
No Packages marked for removal
[root@localhost /]# whereis mysql
mysql: /usr/lib64/mysql
[root@localhost /]# which mysql
/usr/bin/which: no mysql in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/default7/bin)
[root@localhost /]# yum remove MySQL-test
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
No Match for argument: MySQL-test
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Package(s) MySQL-test available, but not installed.
No Packages marked for removal
[root@localhost /]# clear
其实我一直不断的重新安装,总是问题,无法启动或者报错,原因在与第一次安装步骤不正确,然后接下来不断的重装。
但是并没有彻底卸载干净。rpm -e Mysql 这个似乎区分大小写,而我一开始直接删除文件夹来卸载,后来用 rpm -e -nodeps mysql来卸载,但是还是有残留。
最后是用的yum remove mysql ,mysql-server,mysql-