<?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>restore database error Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/restore-database-error/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 31 Mar 2018 10:49:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Mysql error ERROR 1273 (HY000) : Unknown collation: &#8216;utf8mb4_unicode_520_ci&#8217; solved</title>
		<link>https://www.osradar.com/mysql-error-error-1273-hy000-unknown-collation-utf8mb4_unicode_520_ci-solved/</link>
					<comments>https://www.osradar.com/mysql-error-error-1273-hy000-unknown-collation-utf8mb4_unicode_520_ci-solved/#comments</comments>
		
		<dc:creator><![CDATA[Mel K]]></dc:creator>
		<pubDate>Wed, 07 Feb 2018 22:26:01 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[mysql error]]></category>
		<category><![CDATA[restore database error]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=1815</guid>

					<description><![CDATA[<p>In my daily tests, i was testing to restore mysql database from debian9 to centos7. its not really cool because the version release of mysql on Debian is higher then Centos, i did small research and found the solution, and i though maybe its fine to share it with people in this blog. The Problem: [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/mysql-error-error-1273-hy000-unknown-collation-utf8mb4_unicode_520_ci-solved/">Mysql error ERROR 1273 (HY000) : Unknown collation: &#8216;utf8mb4_unicode_520_ci&#8217; solved</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In my daily tests, i was testing to restore mysql database from debian9 to centos7. its not really cool because the version release of mysql on Debian is higher then Centos,</p>
<p>i did small research and found the solution, and i though maybe its fine to share it with people in this blog.</p>
<h4>The Problem:</h4>
<pre class="">[root@localhost ~]# mysql -u root -p osradar < osradar.sql
Enter password:
ERROR 1273 (HY000) at line 25: Unknown collation: 'utf8mb4_unicode_520_ci'</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-1818" src="https://www.osradar.com/wp-content/uploads/2018/02/database1.png" alt="" width="1164" height="82" srcset="https://www.osradar.com/wp-content/uploads/2018/02/database1.png 1164w, https://www.osradar.com/wp-content/uploads/2018/02/database1-300x21.png 300w, https://www.osradar.com/wp-content/uploads/2018/02/database1-768x54.png 768w, https://www.osradar.com/wp-content/uploads/2018/02/database1-1024x72.png 1024w, https://www.osradar.com/wp-content/uploads/2018/02/database1-696x49.png 696w, https://www.osradar.com/wp-content/uploads/2018/02/database1-1068x75.png 1068w" sizes="(max-width: 1164px) 100vw, 1164px" /></p>
<h4>Some times you  get this error :</h4>
<pre class="">1273 - Unknown collation: 'utf8mb4_unicode_ci'</pre>
<h4>Solution:</h4>
<p>Please follow the bellow steps:<code></code></p>
<pre class="">[root@localhost ~]# sed -i 's/utf8mb4/utf8/g' osradar.sql
[root@localhost ~]# sed -i 's/utf8_unicode_ci/utf8_general_ci/g' osradar.sql
[root@localhost ~]# sed -i 's/utf8_unicode_520_ci/utf8_general_ci/g' osradar.sql</pre>
<p>osradar.sql is my MySQL database</p>
<p><img loading="lazy" class="alignnone size-full wp-image-1819" src="https://www.osradar.com/wp-content/uploads/2018/02/database2.png" alt="" width="1244" height="85" srcset="https://www.osradar.com/wp-content/uploads/2018/02/database2.png 1244w, https://www.osradar.com/wp-content/uploads/2018/02/database2-300x20.png 300w, https://www.osradar.com/wp-content/uploads/2018/02/database2-768x52.png 768w, https://www.osradar.com/wp-content/uploads/2018/02/database2-1024x70.png 1024w, https://www.osradar.com/wp-content/uploads/2018/02/database2-696x48.png 696w, https://www.osradar.com/wp-content/uploads/2018/02/database2-1068x73.png 1068w" sizes="(max-width: 1244px) 100vw, 1244px" /></p>
<h4>Restore the Database now</h4>
<pre class="">[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 23
Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]&gt; use osradar;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [osradar]&gt; show tables;
+------------------------+
| Tables_in_osradar |
+------------------------+
| wp_commentmeta |</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-1820" src="https://www.osradar.com/wp-content/uploads/2018/02/database3.png" alt="" width="1212" height="602" srcset="https://www.osradar.com/wp-content/uploads/2018/02/database3.png 1212w, https://www.osradar.com/wp-content/uploads/2018/02/database3-300x149.png 300w, https://www.osradar.com/wp-content/uploads/2018/02/database3-768x381.png 768w, https://www.osradar.com/wp-content/uploads/2018/02/database3-1024x509.png 1024w, https://www.osradar.com/wp-content/uploads/2018/02/database3-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/02/database3-696x346.png 696w, https://www.osradar.com/wp-content/uploads/2018/02/database3-1068x530.png 1068w, https://www.osradar.com/wp-content/uploads/2018/02/database3-846x420.png 846w" sizes="(max-width: 1212px) 100vw, 1212px" /></p>
<p>Please share your experience with this solution on the comments bellow.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/mysql-error-error-1273-hy000-unknown-collation-utf8mb4_unicode_520_ci-solved/">Mysql error ERROR 1273 (HY000) : Unknown collation: &#8216;utf8mb4_unicode_520_ci&#8217; solved</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/mysql-error-error-1273-hy000-unknown-collation-utf8mb4_unicode_520_ci-solved/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
