{"id":4620,"date":"2017-12-08T18:40:37","date_gmt":"2017-12-08T13:10:37","guid":{"rendered":"https:\/\/phpyouth.com\/blog\/?p=4620"},"modified":"2026-10-06T18:33:34","modified_gmt":"2026-10-06T13:03:34","slug":"how-to-fix-1273-unknow-collation-utf8mb4_unicode_520_ci-mysql-query-error","status":"publish","type":"post","link":"https:\/\/phpyouth.com\/blog\/how-to-fix-1273-unknow-collation-utf8mb4_unicode_520_ci-mysql-query-error\/","title":{"rendered":"How to fix #1273 &#8211; Unknow collation: &#8216;utf8mb4_unicode_520_ci&#8217; MySQL query error"},"content":{"rendered":"<p>Hello Friends, today we will learn how to resolve the MySQL error 1273 utf8mb4_unicode_520_ci in WordPress. This MySQL error #1273 &#8211; Unknown collation: &#8216;utf8mb4_unicode_520_ci&#8217; often occurs when importing a WordPress database.<\/p>\n<p>This specific MySQL error often occurs when importing a WordPress database from one host to another using PHPMyAdmin. It can also happen even when importing on the same server.<\/p>\n<p><a href=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/12\/utf8mb4.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-4621 size-large\" src=\"http:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/12\/utf8mb4-1024x290.png\" alt=\"\" width=\"1024\" height=\"290\" title=\"\" srcset=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/12\/utf8mb4-1024x290.png 1024w, https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/12\/utf8mb4-300x85.png 300w, https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/12\/utf8mb4-768x218.png 768w, https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/12\/utf8mb4.png 1115w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>So, here are the steps that will help us fix the MySQL error #1273 \u2013 Unknown collation: &#8216;utf8mb4_unicode_520_ci&#8217;.<\/p>\n<p><strong>STEP 1:<\/strong> Download your Database file in [.sql] format.<\/p>\n<p><strong>STEP 2:<\/strong> Open the database file in either <strong>Macromedia Dreamweaver<\/strong> or <a href=\"https:\/\/notepad-plus-plus.org\/download\" target=\"_blank\" rel=\"noopener\"><strong>Notepad++<\/strong><\/a>, then use the Search &amp; Replace command (Ctrl+F).<\/p>\n<p><strong>STEP 3:<\/strong> Next, search for <strong>&#8220;utf8mb4&#8221;<\/strong> and replace it with <strong>&#8220;utf8&#8221;<\/strong>. This will change all instances of <strong>utf8mb4_unicode_520_ci<\/strong> to <strong>utf8_unicode_520_ci<\/strong>.<\/p>\n<p><strong>STEP 4:<\/strong> Next, search for &#8220;<strong>utf8_unicode_520_ci<\/strong>&#8221; and replace it with &#8220;<strong>utf8_unicode_ci<\/strong>&#8220;.<\/p>\n<p><strong>STEP 5:<\/strong> Finally, open PhpMyAdmin and set the database collation to utf8_unicode_ci via Operations &gt;&gt; Collation.<br \/>\nTry this, it&#8217;ll really work.<\/p>\n<p><a href=\"https:\/\/www.hostg.xyz\/aff_c?offer_id=6&amp;aff_id=115521&amp;url_id=35&amp;file_id=1399\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/media.go2speed.org\/brand\/files\/hostinger\/6\/EN-970x250.jpg\" width=\"970\" height=\"250\" border=\"0\" alt=\"\" title=\"\"><\/a><img decoding=\"async\" style=\"position: absolute; visibility: hidden;\" src=\"https:\/\/www.hostg.xyz\/aff_i?offer_id=6&amp;file_id=1399&amp;aff_id=115521&amp;url_id=35\" width=\"0\" height=\"0\" border=\"0\" alt=\"\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello Friends, today we will learn how to resolve the MySQL error 1273 utf8mb4_unicode_520_ci in WordPress. This MySQL error #1273 &#8211; Unknown collation: &#8216;utf8mb4_unicode_520_ci&#8217; often occurs when importing a WordPress database. This specific MySQL error often occurs when importing a WordPress database from one host to another using PHPMyAdmin. It can also happen even when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4626,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"page_builder":"","_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[101,100,4],"tags":[118],"class_list":["post-4620","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database","category-mysql","category-wordpress","tag-phpmyadmin"],"acf":[],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8zepR-1cw","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":5224,"url":"https:\/\/phpyouth.com\/blog\/create-duplicate-database-using-phpmyadmin\/","url_meta":{"origin":4620,"position":0},"title":"How to make Duplicate\/Clone\/Copy Database using PHPMyAdmin","author":"RK Jajoria","date":"June 2, 2020","format":false,"excerpt":"Hello Friends, how are you? I hope all are feeling well, safe, and at home in this pandemic. I also want to say sorry for not publishing an article in the last 75 days. So today we started again with a new topic, can't say new but yes it's who\u2026","rel":"","context":"In &quot;Database&quot;","block_context":{"text":"Database","link":"https:\/\/phpyouth.com\/blog\/category\/web-hosting\/database\/"},"img":{"alt_text":"DuplicateCloneCopy Database using PHPMyAdmin","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/Duplicate-Clone-Copy-Database-using-PHPMyAdmin.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/Duplicate-Clone-Copy-Database-using-PHPMyAdmin.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/Duplicate-Clone-Copy-Database-using-PHPMyAdmin.webp?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":5000,"url":"https:\/\/phpyouth.com\/blog\/remove-wc_sessions-in-woocommerce\/","url_meta":{"origin":4620,"position":1},"title":"How to Remove wc_sessions in WooCommerce","author":"RK Jajoria","date":"July 4, 2019","format":false,"excerpt":"Hello friends! Today, in this tutorial, we will learn how to remove sessions in WooCommerce. First, we will discuss why we need to remove these sessions from WooCommerce. These sessions make the wp_options table heavy in size. WooCommerce stores the _wc_session_xxx and _wc_session_expires_xxx entries in the wp_options table. There are\u2026","rel":"","context":"In &quot;Plugins&quot;","block_context":{"text":"Plugins","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/plugins\/"},"img":{"alt_text":"Remove woocommerce sessions","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/07\/Remove-woocommerce-sessions.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/07\/Remove-woocommerce-sessions.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2019\/07\/Remove-woocommerce-sessions.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":5639,"url":"https:\/\/phpyouth.com\/blog\/create-wordpress-admin-user-through-ftp\/","url_meta":{"origin":4620,"position":2},"title":"Create WordPress Admin User Through FTP","author":"RK Jajoria","date":"July 12, 2022","format":false,"excerpt":"Hello friends, Today in this article, we will learn how to create WordPress admin users through FTP. FTP will help us to create a WordPress Admin User when we don't have any other access. You can explore our FTP tutorial if FTP(File Transfer Protocol) is a new thing to you.\u2026","rel":"","context":"In &quot;Wordpress&quot;","block_context":{"text":"Wordpress","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/"},"img":{"alt_text":"Create WordPress Admin User Through FTP","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/Create-WordPress-Admin-User-Through-FTP.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/Create-WordPress-Admin-User-Through-FTP.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/Create-WordPress-Admin-User-Through-FTP.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/Create-WordPress-Admin-User-Through-FTP.webp?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4508,"url":"https:\/\/phpyouth.com\/blog\/change-site-language-wordpress\/","url_meta":{"origin":4620,"position":3},"title":"How to change Site language in WordPress","author":"RK Jajoria","date":"September 19, 2017","format":false,"excerpt":"Hello Friends, today we will learn about\u00a0How to change Site language in WordPress. Let me first tell you guys why we wrote this article today. A few days ago, one of my subscribers asked me that he is having a problem in the approval of Google Adsense on his website.\u2026","rel":"","context":"In &quot;Wordpress&quot;","block_context":{"text":"Wordpress","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/09\/1-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/09\/1-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/09\/1-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":13539,"url":"https:\/\/phpyouth.com\/blog\/php-performance-optimization-high-traffic-sites\/","url_meta":{"origin":4620,"position":4},"title":"How to Optimize PHP Performance for High-Traffic Sites","author":"RK Jajoria","date":"August 13, 2026","format":false,"excerpt":"Quick answer: PHP performance optimization for high-traffic sites comes down to five levers: run a current PHP version with OPcache enabled, add an object cache like Redis, tune PHP-FPM worker limits to your server's real capacity, cut database query overhead, and profile before you guess. Sites that skip profiling almost\u2026","rel":"","context":"In &quot;Speed Performance&quot;","block_context":{"text":"Speed Performance","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/speed-performance\/"},"img":{"alt_text":"php performance optimization","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/08\/Optimize-PHP-Performance.webp?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":8880,"url":"https:\/\/phpyouth.com\/blog\/10-best-woocommerce-migration-plugins\/","url_meta":{"origin":4620,"position":5},"title":"10 Best WooCommerce Migration Plugins for 2026 (Ranked)","author":"RK Jajoria","date":"May 14, 2025","format":false,"excerpt":"WooCommerce Migration Plugins can make transferring your online store much easier and more secure. Whether you\u2019re moving to a new host, switching domains, or consolidating two WooCommerce stores into one, manually copying products, orders, customers, and coupons is a good way to lose data, break URLs, or spend a weekend\u2026","rel":"","context":"In &quot;Plugins&quot;","block_context":{"text":"Plugins","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/plugins\/"},"img":{"alt_text":"WooCommerce Migration Plugins","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/05\/10-Best-WooCommerce-Migration-Plugins.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/05\/10-Best-WooCommerce-Migration-Plugins.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/05\/10-Best-WooCommerce-Migration-Plugins.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/05\/10-Best-WooCommerce-Migration-Plugins.webp?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/05\/10-Best-WooCommerce-Migration-Plugins.webp?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/05\/10-Best-WooCommerce-Migration-Plugins.webp?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2017\/12\/1273-\u2013-Unknow-collation-\u2018utf8mb4_unicode_520_ci\u2019.png","_links":{"self":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/4620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/comments?post=4620"}],"version-history":[{"count":1,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/4620\/revisions"}],"predecessor-version":[{"id":13762,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/4620\/revisions\/13762"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/media\/4626"}],"wp:attachment":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/media?parent=4620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/categories?post=4620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/tags?post=4620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}