[root@DB-Server init.d]# service mysql status MySQL running (25673)[ OK ] [root@DB-Server init.d]# service mysql stop Shutting down MySQL..[ OK ] [root@DB-Server init.d]# service mysql status MySQL is not running[FAILED]
2.2 方法2
[root@DB-Server init.d]# ./mysql status MySQL running (26215)[ OK ] [root@DB-Server init.d]# ./mysql stop Shutting down MySQL..[ OK ] [root@DB-Server init.d]# ./mysql status MySQL is not running[FAILED] [root@DB-Server init.d]# Linux平台卸载MySQL总结
[root@DB-Server init.d]# chkconfig --list | grep -i mysql
[root@DB-Server init.d]# [root@DB-Server init.d]# rpm -ev MySQL-devel-5.6.23-1.linux_glibc2.5 [root@DB-Server init.d]# rpm -ev MySQL-server-5.6.23-1.linux_glibc2.5 You have new mail in /var/spool/mail/root [root@DB-Server init.d]# rpm -ev MySQL-client-5.6.23-1.linux_glibc2.5 [root@DB-Server init.d]#
[root@DB-Server ~]# more /etc/passwd | grep mysql mysql:x:101:501::/home/mysql:/bin/bash [root@DB-Server ~]# more /etc/shadow | grep mysql mysql:!!:16496:::::: [root@DB-Server ~]# more /etc/group | grep mysql mysql:x:501: [root@DB-Server ~]# userdel mysql [root@DB-Server ~]# groupdel mysql groupdel: group mysql does not exist [root@DB-Server ~]#