<?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>Control WebPanel Wiki &#187; MariaDB Upgrade</title>
	<atom:link href="https://wiki.centos-webpanel.com/tag/mariadb-upgrade/feed" rel="self" type="application/rss+xml" />
	<link>https://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>MariaDB Upgrade from 10.2 to 10.4</title>
		<link>https://wiki.centos-webpanel.com/mariadb-upgrade-from-10-2-to-10-4</link>
		<comments>https://wiki.centos-webpanel.com/mariadb-upgrade-from-10-2-to-10-4#comments</comments>
		<pubDate>Sun, 11 Sep 2022 07:10:01 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MariaDB Upgrade]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1824</guid>
		<description><![CDATA[Verify if MariaDB 10.2 is installed rpm -qa&#124;grep -i maria&#124;grep "\-10.2." First you need to change the MariaDB repo and replace it with MariaDB 10.4 repo: sed -i 's/10.2/10.4/g' /etc/yum.repos.d/mariadb.repo Second remove MariaDB 10.2 : systemctl stop mariadb mysql mysqld systemctl disable mariadb rpm --nodeps -ev MariaDB-server Third Install MariaDB 10.4 : yum clean all [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="st-alert st-alert- ">
Before starting an upgrade please confirm that you have the backup of MySQL databases and users. Default backup is in the folder /backup/mysql
</div>
<p>Verify if MariaDB 10.2 is installed</p>
<pre>rpm -qa|grep -i maria|grep "\-10.2."</pre>
<p><strong>First you need to change the MariaDB repo and replace it with MariaDB 10.4 repo:</strong></p>
<pre>sed -i 's/10.2/10.4/g' /etc/yum.repos.d/mariadb.repo
</pre>
<p><strong>Second remove MariaDB 10.2 :</strong></p>
<pre>systemctl stop mariadb mysql mysqld
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
</pre>
<p><strong>Third Install MariaDB 10.4 :</strong></p>
<pre>yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
systemctl start mariadb
</pre>
<p><strong>Fourth you need to upgrade your database tables to the latest version:</strong></p>
<pre>mysql_upgrade --force</pre>
<p>After upgrade, you can use "mysql" command to verify the MariaDB version running on your server</p>
<pre>mysql --version</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/mariadb-upgrade-from-10-2-to-10-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MariaDB Upgrade to the new version</title>
		<link>https://wiki.centos-webpanel.com/mariadb-upgrade-to-new-version</link>
		<comments>https://wiki.centos-webpanel.com/mariadb-upgrade-to-new-version#comments</comments>
		<pubDate>Tue, 15 Feb 2022 11:04:30 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MariaDB Upgrade]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1751</guid>
		<description><![CDATA[Check which version of MariaDB is installed on your server rpm -qa&#124;grep -i maria MariaDB Repository Changes Modify repo file to the version you want to upgrade Edit File: /etc/yum.repos.d/mariadb.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.2/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 * Modify 10.2 with the version you want to upgrade Example for upgrade to MariaDB 10.5 [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="st-alert st-alert- ">
Before starting an upgrade please confirm that you have the backup of MySQL databases and users. Default backup is in the folder /backup/mysql</p>
<p>Also, make sure all your scripts/sites are compatible with the new version as there is no return back to an old version.
</p></div>
<p><strong>Check which version of MariaDB is installed on your server</strong></p>
<pre>rpm -qa|grep -i maria</pre>
<p><strong>MariaDB Repository Changes</strong><br />
Modify repo file to the version you want to upgrade<br />
Edit File: /etc/yum.repos.d/mariadb.repo</p>
<pre>[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
</pre>
<p>* Modify 10.2 with the version you want to upgrade<br />
Example for upgrade to MariaDB 10.5</p>
<pre>[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
</pre>
<p><strong>Stop and remove the old version of MariaDB (Databases will not be removed)</strong></p>
<pre>service mysql stop
service mariadb stop
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
</pre>
<p><strong>Install the new version of MariaDB</strong></p>
<pre>yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
service mariadb start
mysql_upgrade
</pre>
<p><strong>Check for the custom configuration</strong></p>
<pre>diff -Bw /etc/my.cnf.d/server.cnf.rpmsave /etc/my.cnf.d/server.cnf
</pre>
<p>Verify upgraded packages</p>
<pre>rpm -qa|grep -i maria</pre>
<p>The output should look like this (10.5.15 should be replaced with your new version)</p>
<pre>
MariaDB-server-10.5.15-1.el7.centos.x86_64
MariaDB-devel-10.5.15-1.el7.centos.x86_64
MariaDB-common-10.5.15-1.el7.centos.x86_64
MariaDB-compat-10.5.15-1.el7.centos.x86_64
MariaDB-client-10.5.15-1.el7.centos.x86_64
MariaDB-shared-10.5.15-1.el7.centos.x86_64
</pre>
<p>Yum repository list of the available versions<br />
<a href="http://yum.mariadb.org/" title="MAriaDB Repository list" target="_blank">http://yum.mariadb.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/mariadb-upgrade-to-new-version/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
