Installing Percona Server for MySQL server and Removing MySQL
Here, we will first install Percona Server for MySQL server and then see how to remove MySQL server
We will begin with a new VM (to check how to install VM you can check on my previous post)
Before starting your terminal should look like this:
If not then you check the previous post, for creating and running a VM
Now let's begin with the installation steps
Step 1: Download Percona MySQL repo package
wget https://repo.percona.com/yum/percona-release-latest.noarch.rpmStep 2: Installing Percona MySQL repo locally
sudo yum localinstall percona-release-latest.noarch.rpmStep 3: Enable Repo for Percona MySQL 8
sudo percona-release setup -y ps80Step 4: Install MySQL Percona Server
sudo yum install percona-server-serverStep 5: Enabling MySQL service to auto-start on reboot
sudo systemctl enable mysqld.serviceStep 6: Start MySQL service
sudo systemctl start mysqld.serviceStep 7: Check the status of the MySQL service
systemctl status mysqldSomething like this should appear on the terminal after running the last command
To confirm whether Percona server is there:
mysql --versionGreat, you have now installed the Percona flavour of MySQL server 🎉
Now let's see how to uninstall MySQL server
Step 1: First search for the repo packages
rpm -qa | grep -i release Step 2: Now remove the repo
sudo yum -y remove percona-release (A complete message should be displayed in the last line)Step 3: Now search for installed packages related to percona
rpm -qa | grep -i perconaStep 4: Remove all the related packages
sudo yum -y remove percona-server-shared sudo yum -y remove percona-server-shared-compat sudo yum -y remove percona-icu-data-filesStep 5: Now verify whether all packages have been deleted or not
rpm -qa | grep -i perconaIf there are files left, you can remove them by using command :
sudo yum -y remove<package-name>




Comments
Post a Comment