卸载
这里的卸载,对应于之前的安装
停止MySQL服务:
db2a:~ # service mysql stop找到所有的MySQL包:
db2a:~ # rpm -qa | grep -i mysql
mysql-community-server-5.7.19-1.sles11
mysql-community-common-5.7.19-1.sles11
libqt4-sql-mysql-4.6.3-5.34.2
mysql-community-libs-5.7.19-1.sles11
libmysqlclient_r15-5.0.96-0.6.20
mysql-community-client-5.7.19-1.sles11
根据上一步结果,卸载这些MySQL包:
db2a:~ # rpm -e --nodeps mysql-community-server-5.7.19-1.sles11
db2a:~ # r pm -e --nodeps mysql-community-common-5.7.19-1.sles11
db2a:~ # rpm -e --nodeps libqt4-sql-mysql-4.6.3-5.34.2
db2a:~ # rpm -e --nodeps mysql-community-libs-5.7.19-1.sles11
db2a:~ # rpm -e --nodeps libmysqlclient_r15-5.0.96-0.6.20
db2a:~ # rpm -e --nodeps mysql-community-client-5.7.19-1.sles11
移除数关文件
db2a:~ # find / -name 'mysql*'
/usr/share/vim/vim72/syntax/mysql.vim
/usr/share/susehelp/meta/Manuals/Productivity/mysql.desktop
/usr/share/man/man5/mysql_table.5.gz
/usr/share/augeas/lenses/dist/mysql.aug
/usr/share/mysql
/usr/lib64/mysql
/etc/apparmor.d/abstractions/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/var/cache/zypper/RPMS/mysql-community-client-5.7.19-1.sles11.x86_64.rpm
/var/cache/zypper/RPMS/mysql-community-libs-5.7.19-1.sles11.x86_64.rpm
/var/cache/zypper/RPMS/mysql-community-common-5.7.19-1.sles11.x86_64.rpm
/var/cache/zypper/RPMS/mysql-community-server-5.7.19-1.sles11.x86_64.rpm
/var/log/mysql
/var/log/mysql/mysqld.log
/root/mysql-community-embedded-5.7.19-1.sles11.x86_64.rpm
/root/mysql-community-client-5.7.19-1.sles11.x86_64.rpm
/root/mysql-community-test-5.7.19-1.sles11.x86_64.rpm
/root/mysql-community-libs-5.7.19-1.sles11.x86_64.rpm
/root/mysql-community-common-5.7.19-1.sles11.x86_64.rpm
/root/mysql-community-embedded-devel-5.7.19-1.sles11.x86_64.rpm
/root/mysql-community-server-5.7.19-1.sles11.x86_64.rpm
/root/mysql-5.7.19-1.sles11.x86_64.rpm-bundle.tar
/root/mysql-community-devel-5.7.19-1.sles11.x86_64.rpm
db2a:~ # rm -rf /root/mysql-community* /var/log/mysql* /var/cache/zypper/RPMS/mysql* /var/lib/mysql*
db2a:~ # rm /root/*.ddl