Uninstalling Percona Server
To prevent data loss, back up the database data before uninstalling the database. This section describes two methods of uninstalling the database. Select a proper method according to the Percona installation mode.
- For details about how to back up the database data, see Backing Up the Database.
- If Percona is installed using the RPM package of the mirror site, select Uninstalling the Database (Against RPM Package Installation).
- If Percona is installed by compiling the source code, select Uninstalling the Database (Against Source Code Compilation).
Uninstalling the Database (Against RPM Package Installation)
- Stop the database process.
1 2
ps -ef | grep mysql kill -9 Process ID

- Uninstall the database RPM package.
1rpm -e percona-8.0.15-6.el7.aarch64
Uninstalling the Database (Against Source Code Compilation)
You only need to delete the installation directory of the database, because only database files are generated during the database installation by compiling the source code.
- Stop the database process.
1 2
ps -ef | grep mysql kill -9 Process ID

- Delete the database software installation directory.
1rm -rf /usr/local/percona
Parent topic: Installation Guide