<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>percona Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/percona/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 09 Mar 2020 20:55:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install Percona on CentOS 8?</title>
		<link>https://www.osradar.com/how-to-install-percona-centos-8/</link>
					<comments>https://www.osradar.com/how-to-install-percona-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 14 Mar 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[percona]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18899</guid>

					<description><![CDATA[<p>Database management is an essential part of any application. And there are many solutions but some are more business-oriented than others, and today I will show you how to install Percona on CentOS 8. With Percona you will have a professional SQL database manager 100% compatible with MySQL. Percona and MySQL Percona Server is a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-percona-centos-8/">How to install Percona on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Database management is an essential part of any application. And there are many solutions but some are more business-oriented than others, and today <strong>I will show you how to install Percona on CentOS 8</strong>. With Percona you will have a professional SQL database manager 100% compatible with MySQL.</p>



<h2>Percona and MySQL</h2>



<p><strong><a href="https://www.percona.com/" target="_blank" rel="noreferrer noopener">Percona</a> Server is a MySQL fork</strong>. This makes it 100% compatible with this one, including commands and configurations. In the beginning, it was a community project but today it has a company behind it that offers mainly even more efficiency than MySQL for a lower cost. <strong>Percona Server also includes XtraDB which is a fork of the InnoDB engine that makes the application more efficient</strong>.</p>



<p>As expected, Percona also has a free version that we can install without problems and is available for Linux.</p>



<p>Thanks to the associated tools of Percona, it is possible to monitor and keep statistics of the performance of the database. On the other hand, Percona also includes in its products an alternative to <a rel="noreferrer noopener" href="https://www.osradar.com/how-to-create-a-cluster-with-mariadb-galera-on-ubuntu-18-04/" target="_blank">Galera</a>, which allows us to build our clusters with full compatibility with it.</p>



<h2>Install Percona on CentOS 8</h2>



<p>As with Debian based distributions Percona makes available a package repository for CentOS 8</p>



<p>So let&#8217;s get to work.</p>



<p>First, open a terminal or if you&#8217;re going to do the process on a server, connect via SSH.</p>



<p>Once you have the terminal session started, add the repository by downloading and installing an RPM package. You can do all this with the following command:</p>



<pre class="wp-block-preformatted">sudo dnf install https://repo.percona.com/yum/percona-release-latest.noarch.rpm</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="310" src="https://www.osradar.com/wp-content/uploads/2020/03/1-6-1024x310.png" alt="1.- Adding the Percona repository for CentOS " class="wp-image-19016" srcset="https://www.osradar.com/wp-content/uploads/2020/03/1-6-1024x310.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/1-6-300x91.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/1-6-768x232.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/1-6-696x211.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/1-6-1068x323.png 1068w, https://www.osradar.com/wp-content/uploads/2020/03/1-6.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Adding the Percona repository for CentOS </figcaption></figure>



<p>There you will start the whole process of downloading, installing and adding the repository. </p>



<p>At the end of the process, the repository will be added but it must be enabled. You can do this with the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo percona-release setup ps80
 Disabling all Percona Repositories
 On RedHat 8 systems it is needed to disable dnf mysql module to install Percona-Server
 Do you want to disable it? [y/N] y
 Disabling dnf module…
 Failed to set locale, defaulting to C.UTF-8
 Last metadata expiration check: 0:00:48 ago on Sun Mar  8 15:03:41 2020. 
 Dependencies resolved.
  Package                                 Architecture                           Version                                    Repository                               Size
 Disabling modules:
  mysql                                                                                                                                                                  
 Transaction Summary
 Complete!
 dnf mysql module was disabled
 Enabling the Percona Server 8.0 repository
 Enabling the Percona Tools repository
 &lt;*> All done! </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="318" src="https://www.osradar.com/wp-content/uploads/2020/03/2-7-1024x318.png" alt="2.- Installing Percona on CentOS 8" class="wp-image-19017" srcset="https://www.osradar.com/wp-content/uploads/2020/03/2-7-1024x318.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/2-7-300x93.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/2-7-768x239.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/2-7-696x216.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/2-7-1068x332.png 1068w, https://www.osradar.com/wp-content/uploads/2020/03/2-7-1352x420.png 1352w, https://www.osradar.com/wp-content/uploads/2020/03/2-7.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Installing Percona on CentOS 8</figcaption></figure>



<p>As we can notice, enabling the Percona repository disables the MySQL packages module. This avoids any compatibility issues.</p>



<p>Now we can install Percona by executing the following command</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install percona-server-server
Failed to set locale, defaulting to C.UTF-8
 Percona Server 8.0 release/x86_64 YUM repository                                                                                         132 kB/s | 1.0 MB     00:08    
 Percona Server 8.0 release/noarch YUM repository                                                                                          67  B/s | 257  B     00:03    
 Percona Tools release/x86_64 YUM repository                                                                                              110 kB/s | 1.2 MB     00:10    
 Percona Tools release/noarch YUM repository                                                                                              120  B/s | 257  B     00:02    
 Dependencies resolved.
  Package                                          Architecture               Version                                      Repository                                Size
 Installing:
  percona-server-server                            x86_64                     8.0.18-9.1.el8                               ps-80-release-x86_64                      45 M
 Installing dependencies:
  compat-openssl10                                 x86_64                     1:1.0.2o-3.el8                               AppStream                                1.1 M
  libaio                                           x86_64                     0.3.112-1.el8                                BaseOS                                    33 k
  make                                             x86_64                     1:4.2.1-9.el8                                BaseOS                                   498 k
  net-tools                                        x86_64                     2.0-0.51.20160912git.el8                     BaseOS                                   323 k
  perl-Carp                                        noarch                     1.42-396.el8                                 BaseOS                                    30 k
  perl-Errno                                       x86_64                     1.28-416.el8                                 BaseOS                                    76 k
  perl-Exporter                                    noarch                     5.72-396.el8                                 BaseOS                                    34 k
  perl-File-Path                                   noarch                     2.15-2.el8                                   BaseOS                                    38 k
  perl-IO                                          x86_64                     1.38-416.el8                                 BaseOS                                   141 k
  perl-PathTools                                   x86_64                     3.74-1.el8                                   BaseOS                                    90 k
  perl-Scalar-List-Utils                           x86_64                     3:1.49-2.el8                                 BaseOS                                    68 k
  perl-Socket                                      x86_64                     4:2.027-3.el8                                BaseOS                                    59 k
  perl-Text-Tabs+Wrap                              noarch                     2013.0523-395.el8                            BaseOS                                    24 k
  perl-Unicode-Normalize                           x86_64                     1.25-396.el8                                 BaseOS                                    82 k
  perl-constant                                    noarch                     1.33-396.el8                                 BaseOS                                    25 k
  perl-interpreter                                 x86_64                     4:5.26.3-416.el8                             BaseOS                                   6.3 M
  perl-libs                                        x86_64                     4:5.26.3-416.el8                             BaseOS                                   1.6 M
  perl-macros                                      x86_64                     4:5.26.3-416.el8                             BaseOS                                    72 k
  perl-parent                                      noarch                     1:0.237-1.el8                                BaseOS                                    20 k
  perl-threads                                     x86_64                     1:2.21-2.el8                                 BaseOS                                    61 k
  perl-threads-shared                              x86_64                     1.58-2.el8                                   BaseOS                                    48 k
  percona-server-client                            x86_64                     8.0.18-9.1.el8                               ps-80-release-x86_64                      12 M
  percona-server-shared                            x86_64                     8.0.18-9.1.el8                               ps-80-release-x86_64                     1.3 M
  percona-server-shared-compat                     x86_64                     8.0.18-9.1.el8                               ps-80-release-x86_64                     1.2 M
 Transaction Summary
 Install  25 Packages
 Total download size: 70 M
 Installed size: 479 M
 Is this ok [y/N]:</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="530" src="https://www.osradar.com/wp-content/uploads/2020/03/3-7-1024x530.png" alt="3.- Install Percona on CentOS 8" class="wp-image-19018" srcset="https://www.osradar.com/wp-content/uploads/2020/03/3-7-1024x530.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/3-7-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/3-7-768x397.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/3-7-696x360.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/3-7-1068x552.png 1068w, https://www.osradar.com/wp-content/uploads/2020/03/3-7-812x420.png 812w, https://www.osradar.com/wp-content/uploads/2020/03/3-7.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Install Percona on CentOS 8</figcaption></figure>



<p>Once Percona has been installed, the system service must be started. This process is the same as with MySQL.</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl start mysql</pre>



<p>You can then check the operation of the service using this command:</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl status mysql
● mysqld.service - MySQL Server
    Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
    Active: active (running) since Sun 2020-03-08 15:51:26 EDT; 34s ago
      Docs: man:mysqld(8)
            http://dev.mysql.com/doc/refman/en/using-systemd.html
   Process: 10726 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
  Main PID: 10808 (mysqld)
    Status: "Server is operational"
     Tasks: 40 (limit: 2882)
    Memory: 326.0M
    CGroup: /system.slice/mysqld.service
            └─10808 /usr/sbin/mysqld
 Mar 08 15:50:53 localhost.localdomain systemd[1]: Starting MySQL Server…
 Mar 08 15:51:26 localhost.localdomain systemd[1]: Started MySQL Server.</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="871" height="281" src="https://www.osradar.com/wp-content/uploads/2020/03/4-4.png" alt="4.- Service status" class="wp-image-19020" srcset="https://www.osradar.com/wp-content/uploads/2020/03/4-4.png 871w, https://www.osradar.com/wp-content/uploads/2020/03/4-4-300x97.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/4-4-768x248.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/4-4-696x225.png 696w" sizes="(max-width: 871px) 100vw, 871px" /><figcaption>4.- Service status</figcaption></figure>



<p>The first thing will be to define a root password but the problem is that during the installation, Percona assigns a temporary password. To find out what it is, use the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo grep 'temporary password' /var/log/mysqld.log
2020-03-08T19:51:02.795737Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: WQ,lRHwtA8pw</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="92" src="https://www.osradar.com/wp-content/uploads/2020/03/5-6-1024x92.png" alt="5.- Temporary root password" class="wp-image-19022" srcset="https://www.osradar.com/wp-content/uploads/2020/03/5-6-1024x92.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/5-6-300x27.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/5-6-768x69.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/5-6-696x62.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/5-6-1068x95.png 1068w, https://www.osradar.com/wp-content/uploads/2020/03/5-6.png 1085w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Temporary root password</figcaption></figure>



<p>And now thanks to the <code>mysql_secure_installation</code> script, you can change the root password:</p>



<pre class="wp-block-preformatted">:~$ sudo mysql_secure_installation</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="875" height="288" src="https://www.osradar.com/wp-content/uploads/2020/03/6-4.png" alt="6.- Change the default root password" class="wp-image-19023" srcset="https://www.osradar.com/wp-content/uploads/2020/03/6-4.png 875w, https://www.osradar.com/wp-content/uploads/2020/03/6-4-300x99.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/6-4-768x253.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/6-4-696x229.png 696w" sizes="(max-width: 875px) 100vw, 875px" /><figcaption>6.- Change the default root password</figcaption></figure>



<p>Now, you can secure the installation:</p>



<pre class="wp-block-preformatted">Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
 Success.
 Normally, root should only be allowed to connect from
 'localhost'. This ensures that someone cannot guess at
 the root password from the network.
 Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
 Success.
 By default, MySQL comes with a database named 'test' that
 anyone can access. This is also intended only for testing,
 and should be removed before moving into a production
 environment.
 Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
 Dropping test database…
 Success.
 Removing privileges on test database…
 Success. 
 Reloading the privilege tables will ensure that all changes
 made so far will take effect immediately.
 Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
 Success.
 All done!</pre>



<p>Finally, you can access to Percona shell.</p>



<pre class="wp-block-preformatted">:~$ sudo mysql -u root -p</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="767" height="326" src="https://www.osradar.com/wp-content/uploads/2020/03/7-3.png" alt="7.- Percona shell" class="wp-image-19024" srcset="https://www.osradar.com/wp-content/uploads/2020/03/7-3.png 767w, https://www.osradar.com/wp-content/uploads/2020/03/7-3-300x128.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/7-3-696x296.png 696w" sizes="(max-width: 767px) 100vw, 767px" /><figcaption>7.- Percona shell</figcaption></figure>



<p>Finally, you can check the current version:</p>



<pre class="wp-block-preformatted">:~$ mysql --version
 mysql  Ver 8.0.18-9 for Linux on x86_64 (Percona Server (GPL), Release 9, Revision 53e606f)</pre>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>Percona server is a professional alternative to MySQL. It has the direct support of a company that promises maximum efficiency and total compatibility with MySQL. Of course, this always benefits the consumer and the more options the better. In this post, you have learned how to install it on CentOS 8.</p>



<p>Please share this post and join <a href="https://www.t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="our Telegram channel (opens in a new tab)">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-percona-centos-8/">How to install Percona on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-percona-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
