{"id":2910,"date":"2023-05-30T11:01:13","date_gmt":"2023-05-30T11:01:13","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=2910"},"modified":"2023-05-30T11:01:15","modified_gmt":"2023-05-30T11:01:15","slug":"install-exact-version-of-percona-server-for-mysql-on-centos","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/install-exact-version-of-percona-server-for-mysql-on-centos","title":{"rendered":"Install exact version of Percona Server for MySQL on CentOS"},"content":{"rendered":"\n<p>This blog post serves as a work-log detailing the process of uninstalling and installing a specific version of Percona MySQL Server on CentOS. The post includes instructions for installation using yum utility.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Demo video for uninstall \/ installing Percona Server for MySQL on CentOS<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Install specific version percona server mysql on Ubuntu\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/p6-qlbgxljI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Uninstall Percona Server for MySQL<\/h2>\n\n\n\n<p>Prior to uninstalling, it is recommended to create a backup. Depending on the size of the data, you can choose to use Xtrabackup, mysqldump, or mydumper. Let&#8217;s begin by backing up the existing databases, excluding the system databases for now.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysqldump --single-transaction --routines --triggers --set-gtid-purged=OFF --databases test &gt; test.sql<\/code><\/pre>\n\n\n\n<p>Save user grants<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pt-show-grants &gt; grants.sql<\/code><\/pre>\n\n\n\n<p>Stop MySQL<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl stop mysql<br>systemctl status mysql<\/code><\/pre>\n\n\n\n<p>Uninstall Percona Server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@ip-172-31-63-168 ~]#<strong> yum list installed | grep -i percona<\/strong>\npercona-icu-data-files.x86_64 8.0.32-24.1.el7 @ps-80-release-x86_64\npercona-release.noarch 1.0-27 @\/percona-release-latest.noarch\npercona-server-client.x86_64 8.0.32-24.1.el7 @ps-80-release-x86_64\npercona-server-server.x86_64 8.0.32-24.1.el7 @ps-80-release-x86_64\npercona-server-shared.x86_64 8.0.32-24.1.el7 @ps-80-release-x86_64\npercona-server-shared-compat.x86_64 8.0.32-24.1.el7 @ps-80-release-x86_64\npercona-toolkit.x86_64 3.5.0-5.el7 @\/percona-toolkit-3.5.0-5.el7.x86_64\n&#91;root@ip-172-31-63-168 ~]# yum remove percona-server-* percona-toolkit<\/code><\/pre>\n\n\n\n<p>Remove MySQL specific data-files<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@ip-172-31-63-168 mysql]# rm -fr \/var\/lib\/mysql\/*<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install Percona Server for MySQL<\/h2>\n\n\n\n<p>If you don&#8217;t have Percona repository already configured and you&#8217;re installing this for the first time, you need to configure the repo<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install https:\/\/repo.percona.com\/yum\/percona-release-latest.noarch.rpm\nsudo percona-release enable-only ps-80 release<\/code><\/pre>\n\n\n\n<p>Check available packages<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@ip-172-31-63-168]# yum -q list available --showduplicates Percona-Server-server\npercona-server-server.x86_64                                           8.0.13-3.1.el7                                            ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.13-4.1.el7                                            ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.15-5.1.el7                                            ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.15-6.1.el7                                            ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.16-7.1.el7                                            ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.17-8.1.el7                                            ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.18-9.1.el7                                            ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.19-10.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.20-11.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.21-12.2.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.22-13.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.23-14.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.25-15.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.26-16.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.26-17.2.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.27-18.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.28-19.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.28-20.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.29-21.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.30-22.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.31-23.1.el7                                           ps-80-release-x86_64\npercona-server-server.x86_64                                           8.0.32-24.1.el7                                           ps-80-release-x86_64<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install Specific Version of MySQL<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&#91;root@ip-172-31-63-168 mysql]# yum install <strong>percona-server-server-8.0.28-19.1.el7<\/strong>\n...\n=====================================================================================================================================================\n Package                                       Arch                    Version                           Repository                             Size\n=====================================================================================================================================================\nInstalling:\n percona-server-server                         x86_64                  8.0.28-19.1.el7                   ps-80-release-x86_64                   66 M\nInstalling for dependencies:\n percona-server-client                         x86_64                  8.0.32-24.1.el7                   ps-80-release-x86_64                   16 M\n percona-server-shared                         x86_64                  8.0.32-24.1.el7                   ps-80-release-x86_64                  1.5 M\n percona-server-shared-compat                  x86_64                  8.0.32-24.1.el7                   ps-80-release-x86_64                  1.2 M\n\nTransaction Summary\n=====================================================================================================================================================\nInstall  1 Package (+3 Dependent packages)<\/code><\/pre>\n\n\n\n<p>Note that the dependencies are not resolved to the exact version, rather a latest one. So, we will have to specify the exact versions for the same.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install percona-server-server-8.0.28-19.1.el7 percona-server-client-8.0.28-19.1.el7 percona-server-shared-8.0.28-19.1.el7 percona-server-shared-compat-8.0.28-19.1.el7<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"This blog post serves as a work-log detailing the process of uninstalling and installing a specific version of Percona MySQL Server on CentOS. The post includes instructions for installation using&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,377,378],"tags":[606,594,607,427,608,609],"class_list":{"0":"post-2910","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-mysql","7":"category-mysql-articles","8":"category-mysql-scripts-mysql","9":"tag-install-exact-version","10":"tag-install-mysql","11":"tag-install-percona-server","12":"tag-mysql","13":"tag-mysql-on-centos","14":"tag-percona-server-on-centos"},"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=2910"}],"version-history":[{"count":2,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2910\/revisions"}],"predecessor-version":[{"id":2921,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/2910\/revisions\/2921"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=2910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=2910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=2910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}