Uninstall mysql in linux and mysql in linux

Source: Internet
Author: User

Uninstall mysql in linux and mysql in linux
Uninstall mysql in linux
Uninstall mysql
1. Check whether mysql is installed before.
Command: rpm-qa | grep-I mysql
We can see two mysql packages:
Mysql-4.1.12-3.RHEL4.1
Mysqlclient10-3.23.58-4.RHEL4.1
2. Delete mysql
DELETE command: rpm-e -- nodeps package name
(Rpm-ev mysql-4.1.12-3.RHEL4.1)
3. Delete the development header files and libraries of old mysql versions.
Command: rm-fr/usr/lib/mysql
Rm-fr/usr/include/mysql
Note: After uninstallation, data in/var/lib/mysql and/etc/my. cnf will not be deleted. If you are sure it is useless, manually delete it.
Rm-f/etc/my. cnf
Rm-fr/var/lib/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.