Percona MySQL Deinstall

Assumptions

  • Percona MySQL has been installed using yum

Stop MySQL

systemctl stop mysql

Deinstall (yum)

yum remove percona-server-server

For versions earlier than 8.0 you may need one of the alternate commands...

yum remove Percona-Server-server

yum remove Percona-Server-server-57.x86_64

Use yum list to identify the actual package name required...

yum list | grep -i percona

Cleanup

rm /var/log/mysqld.log

rm -rf /var/lib/mysql/*

rm -rf /var/lib/mysql/.aaa*

yum install rsync

rsync is sometimes, but not always, deinstalled as a dependency