Uninstalling MySQL

Technical Articles

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US
  1. Determine which MySQL related components are currently installed by executing the following command:
    rpm -qa | grep mysql
  2. Uninstall each MySQL related component by using the yum remove command. For example:
    yum remove mysql
    yum remove mysql-libs
    yum remove mysql-common

    Execute commands similar to the above for each MySQL related component returned in step 1.

  3. Delete the directory containing the database by executing the following command:
    sudo rm -rf /var/lib/mysql