Linux under uninstall crippled MySQL

Source: Internet
Author: User

A test virtual machine installed MySQL accidentally crippled by me, now want to completely clean it off.

System environment: CENTOS7, MySQL

If the MySQL service is in the boot, you need to stop

Systemctl Stop Mysqld
Or
Service Mysqld Stop

Verify that no MySQL service process is running

Ps-ef | grep MySQL

If the MySQL is installed in yum mode

Yum remove MySQL mysql-server mysql-libs compat-mysql51

Rm-rf/var/lib/mysq

Rm/etc/my.cnf

Query the RPM package for MySQL

Rpm-qa | grep MySQL
#如果上面命令有输出, uninstall these rpm packages.
RPM-E Package Name

Remove the MySQL service

Chkconfig--list | Grep-i MySQL

Chkconfig--del MySQL

Find other relevant MySQL files and directories

Find/-name MySQL

Based on the results found in the above command, use RM-RF to delete

Linux under uninstall crippled MySQL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.