Home  >  Article  >  Database  >  linux 怎么完全卸载mysql数据库

linux 怎么完全卸载mysql数据库

WBOY
WBOYOriginal
2016-06-07 15:20:591262browse

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 a)查看系统中是否以rpm包安装的mysql [root@linux ~]# rpm -qa | grep -i mysql MySQL-server-5.1.49-1.glibc23 MySQL-client-5.1.49-1.glibc23 卸载MySQL-server-5.1.49-1.glibc23和MySQL-client-5

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入

  a)查看系统中是否以rpm包安装的mysql

  [root@linux ~]# rpm -qa | grep -i mysql

  MySQL-server-5.1.49-1.glibc23

  MySQL-client-5.1.49-1.glibc23

  卸载MySQL-server-5.1.49-1.glibc23和MySQL-client-5.1.49-1.glibc23

  [root@linux ~]# rpm -e MySQL-client-5.1.49-1.glibc23

  [root@linux ~]# rpm -e MySQL-server-5.1.49-1.glibc23

  b)查看有没有mysql服务

  [root@linux ~]# chkconfig --list | grep -i mysql

  mysql           0:off   1:off   2:on    3:on    4:on    5:on    6:off

  删除mysql服务

  [root@linux ~]# chkconfig --del mysql

  c)删除分散mysql文件夹

  [root@linux ~]# whereis mysql

  mysql: /usr/lib/mysql /usr/share/mysql

  分别删除

  [root@linux lib]# rm -rf /usr/lib/mysql/

  [root@linux lib]# rm -rf /usr/share/mysql

linux 怎么完全卸载mysql数据库

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:cocos2d convertToWorldSpace 转换Next article:mysql修改wait