- Determine which MySQL related components are currently installed by executing the following command:
rpm -qa | grep mysql - Uninstall each MySQL related component by using the
yum removecommand. For example:yum remove mysql yum remove mysql-libs yum remove mysql-commonExecute commands similar to the above for each MySQL related component returned in step 1.
- Delete the directory containing the database by executing the following command:
sudo rm -rf /var/lib/mysql