<?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>database &#8211; Deep Core Labs</title>
	<atom:link href="https://deepcorelabs.com/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>https://deepcorelabs.com</link>
	<description>Building Extraordinary Brands</description>
	<lastBuildDate>Wed, 31 Jan 2024 04:19:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://deepcorelabs.com/wp-content/uploads/2015/09/deep-core-labs-logo-small-50x50.png</url>
	<title>database &#8211; Deep Core Labs</title>
	<link>https://deepcorelabs.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Upgrade MariaDB on Plesk</title>
		<link>https://deepcorelabs.com/upgrade-mariadb-on-plesk/</link>
					<comments>https://deepcorelabs.com/upgrade-mariadb-on-plesk/#respond</comments>
		
		<dc:creator><![CDATA[Miro Hristov]]></dc:creator>
		<pubDate>Mon, 22 Jan 2024 03:22:01 +0000</pubDate>
				<category><![CDATA[database]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Plesk]]></category>
		<guid isPermaLink="false">https://deepcorelabs.com/?p=4319</guid>

					<description><![CDATA[The Problem: Unfortunately, Plesk doesn&#8217;t seem to have a way to upgrade MariaDB using the components in the control panel. Attempts to add this feature didn&#8217;t work for me either...]]></description>
										<content:encoded><![CDATA[<h2>The Problem:</h2>
<p>Unfortunately, Plesk doesn&#8217;t seem to have a way to upgrade MariaDB using the components in the control panel.</p>
<p><a href="https://docs.plesk.com/release-notes/obsidian/change-log/#plesk-18052">Attempts to add this feature</a> didn&#8217;t work for me either despite their claims <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><a href="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859.png" rel="prettyPhoto[gallery-nKX5]"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4321" src="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859.png" alt="" width="984" height="449" srcset="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859.png 984w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859-300x137.png 300w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-220859-768x350.png 768w" sizes="(max-width: 984px) 100vw, 984px" /></a></p>
<p><em>Hint: you can add an extension from the Plesk interface named Panel.ini Editor if you want to try your luck:</em></p>
<p><a href="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-221035.png" rel="prettyPhoto[gallery-nKX5]"><img decoding="async" class="alignnone size-full wp-image-4322" src="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-221035.png" alt="" width="243" height="123" /></a></p>
<p>The following official article on Plesk doesn&#8217;t work either <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><a href="https://support.plesk.com/hc/en-us/articles/12388091703703">https://support.plesk.com/hc/en-us/articles/12388091703703</a></p>
<p>It results in an error like this:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="bash">The repository 'https://dlm.mariadb.com/repo/maxscale/latest/apt bionic Release' does not have a Release file.

Failed to add trusted package signing keys</pre>
<h2></h2>
<h2>The Solution:</h2>
<ol>
<li>First create backups of all databases as .sql dump:
<pre class="EnlighterJSRAW" data-enlighter-language="bash">MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin --verbose --all-databases --routines --triggers &gt; /tmp/all-databases.sql</pre>
</li>
<li>Create a backup of all MySQL/MariaDB data (this is different from the above &#8212; it copies the entire current mysql/mariadb version executables):
<pre class="EnlighterJSRAW" data-enlighter-language="bash">cp -v -a /var/lib/mysql/ /var/lib/mysql_backup</pre>
</li>
</ol>
<p>&nbsp;</p>
<p>Then, follow this instead: <a href="https://mariadb.org/download/?t=repo-config&amp;d=18.04+LTS+%22bionic%22&amp;v=11.2&amp;r_m=knownhost">https://mariadb.org/download/?t=repo-config&amp;d=18.04+LTS+%22bionic%22&amp;v=11.2&amp;r_m=knownhost</a></p>
<p>Make sure you select your right OS version, desired MariaDB version, and a mirror closer to you is preferable.</p>
<p><strong>Hints:</strong><br />
Use <strong>cat /etc/*-release</strong> to find out your current OS name and version.</p>
<p>Use<strong> sudo nano /etc/apt/sources.list.d/mariadb.sources</strong> to create a file and paste the contents from second box. Ctrl+X to exit nano and Y to save file.</p>
<p><a href="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700.jpg" rel="prettyPhoto[gallery-nKX5]"><img decoding="async" class="alignnone wp-image-4338 size-large" src="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700-1024x847.jpg" alt="" width="1024" height="847" srcset="https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700-1024x847.jpg 1024w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700-300x248.jpg 300w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700-768x635.jpg 768w, https://deepcorelabs.com/wp-content/uploads/2024/01/Screenshot-2024-01-21-215700.jpg 1283w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<p>&nbsp;</p>
<p>In the end I finished with some commands from the first article that didn&#8217;t work initially. It&#8217;s supposed to add the newly installed MariaDB version to Plesk.</p>
<ol start="6">
<li>Start the MariaDB service:
<pre class="EnlighterJSRAW" data-enlighter-language="generic">systemctl start mariadb</pre>
</li>
<li>Upgrade MySQL/MariaDB databases:
<pre class="EnlighterJSRAW" data-enlighter-language="generic">MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql_upgrade -uadmin</pre>
</li>
<li>Restart MySQL/MariaDB service:
<pre class="EnlighterJSRAW" data-enlighter-language="generic">systemctl restart mariadb</pre>
</li>
<li>Execute the following commands to update package version inside Plesk:
<pre class="EnlighterJSRAW" data-enlighter-language="generic">plesk bin service_node --update local
plesk sbin packagemng -sdf</pre>
<p>&nbsp;</li>
</ol>
<p>This finally worked&#8230;  after a few refreshes Plesk was showing MariaDB Version: 11.2 <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Let me know how it goes. Good luck!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://deepcorelabs.com/upgrade-mariadb-on-plesk/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
