<?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>Transfer &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/transfer/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Thu, 26 Nov 2020 06:39:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Transfer &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Backup, Restore or Transfer MySQL/MariaDB Databases on Ubuntu</title>
		<link>https://help.hostry.com/knowledge-base/how-to-backup-restore-or-transfer-mysql-mariadb-databases-on-ubuntu/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-backup-restore-or-transfer-mysql-mariadb-databases-on-ubuntu/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 18 Oct 2019 06:27:04 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=816</guid>

					<description><![CDATA[Today, Backup is a significant procedure and a very important part of working with databases. Regardless of whether you use a corporate website or just host WordPress, it is important to back up your databases. The backup storage is necessary in order to be able to restore information in a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Today, <strong><em><a href="https://hostry.com/blog/the-crucial-importance-of-backup/">Backup</a></em></strong> is a significant procedure and a very important part of working with databases. Regardless of whether you use a corporate website or just host WordPress, it is important to back up your databases. The backup storage is necessary in order to be able to restore information in a very quick and convenient way, in the event that a working copy of the information may be lost for any reason: restoration of documents, settings, certain programs and other things.</p>



<h2 id="backup-process" >Backup process</h2>



<p>We recommend a way to back up a MySQL or MariaDB database using the <strong>mysqldump </strong>dump command. </p>



<pre class="wp-block-code"><code>echo "SHOW DATABASES;" | sudo mysql</code></pre>



<p>This command displays a list of your databases. Make sure you know which .sql file you need, and then simply run the following command to backup to the file.</p>



<pre class="wp-block-code"><code>sudo mysqldump example_database > $(date +"%F").sql</code></pre>



<p>The command described above will back up the example_database to a file with a date ending in .sql. It is also possible to change the name of this file to any other, although saving the file name as a date will be useful if you accidentally delete an important row or column. Use date &#8211;help to learn about other ways to style your date.</p>



<h2 id="recovery" >Recovery</h2>



<p>Here you need to find the .sql file that you created and run the following:</p>



<pre class="wp-block-code"><code>sudo mysql example_database &lt; filename.sql</code></pre>



<h2 id="migrating-to-mariadb-from-mysql" >Migrating to MariaDB from MySQL</h2>



<p>The first thing to do is back up each of your databases:</p>



<pre class="wp-block-code"><code>sudo mysqldump example_database > example_database.sql</code></pre>



<p>After that, you will need to install MariaDB, which will replace MySQL, and restore your databases by following these steps for each database.</p>



<pre class="wp-block-code"><code>sudo mysql example_database &lt; example_database.sql</code></pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-backup-restore-or-transfer-mysql-mariadb-databases-on-ubuntu/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
