{"id":1021,"date":"2021-04-21T06:23:20","date_gmt":"2021-04-21T06:23:20","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=1021"},"modified":"2021-04-21T06:53:28","modified_gmt":"2021-04-21T06:53:28","slug":"upgrade-mysql5-5-to-5-6-5-7","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/","title":{"rendered":"How to upgrade MySQL 5.5 to 5.6\/5.7 or MariaDB 5.5 to 10.X on Linux Plesk?"},"content":{"rendered":"<p>Several parameters have defaults that differ from the previous versions and the mail reason for these changes to provide better out-of-box performance and to eliminate the need for the <a href=\"https:\/\/www.velaninfo.com\/rs\/tech-tips\/database\/\"><strong>database administrator<\/strong><\/a> to change settings manually. Upgrades also give you access to new enhancements made in the newer versions.<\/p>\n<p>Following are the instructions for upgrading MySQL 5.5 to 5.6\/5.7 and MariaDB 5.5 to 10.0\/10.1\/10.2\/10.3\/10.4\/10.5 on Linux Plesk.<\/p>\n<p># <em>plesk version | grep &#8220;OS version&#8221;<\/em><\/p>\n<p>Or<\/p>\n<p># <em>cat \/etc\/*-release<\/em><\/p>\n<p><strong>Plesk on CentOS 8<\/strong><\/p>\n<p>CentOS 8 is shipped with MariaDB 10.3 as a default DB.<\/p>\n<p>For security and backup reasons, create a database dump of all databases with the following command:<\/p>\n<p># <em>MYSQL_PWD=`cat \/etc\/psa\/.psa.shadow` mysqldump -u admin &#8211;verbose &#8211;all-databases &#8211;routines &#8211;triggers &gt; \/tmp\/all-databases.sql<\/em><\/p>\n<p>Stop MariaDB<\/p>\n<p># <em>servicemariadb stop<\/em><\/p>\n<p>Remove additional package conflicting with 10.4 version:<\/p>\n<p># <em>yum remove mariadb-gssapi-server<\/em><\/p>\n<p>Copy the database directory in a separate folder:<\/p>\n<p># <em>cp -v -a \/var\/lib\/mysql\/ \/var\/lib\/mysql_backup<\/em><\/p>\n<p>Configure MariaDB repository:<\/p>\n<p>Open the Setting MariaDB repositories page, select your OS distro, release, and desired MariaDB version. Once done, the configuration that should be added to the \/etc\/yum.repos.d\/MariaDB.repo file will appear.<\/p>\n<p>Warning: MariaDB 10.4 and 10.5 are supported since 18.0.30, make sure the latest Plesk version is installed.<\/p>\n<p>Here is an example for MariaDB 10.4:<\/p>\n<p>Open\/create the MariaDB.repo file in any text editor.<\/p>\n<p># <em>vi \/etc\/yum.repos.d\/MariaDB.repo<\/em><\/p>\n<p>Add the content below to the file:<\/p>\n<p><em>[mariadb]<\/em><\/p>\n<p><em>name = MariaDB<\/em><\/p>\n<p><em>baseurl = http:\/\/yum.mariadb.org\/10.4\/centos8-amd64<\/em><\/p>\n<p><em>gpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB<\/em><\/p>\n<p><em>gpgcheck=1<\/em><\/p>\n<p><em>priority=1<\/em><\/p>\n<p><em>module_hotfixes=1<\/em><\/p>\n<p>The configuration item module_hotfixes=1 is a workaround for what MariaDB told is a dnf bug. See MDEV-20673 for more details<\/p>\n<p>Save the changes and close the file.<\/p>\n<p>Reset all the cache:<\/p>\n<p># <em>yum clean all<\/em><\/p>\n<p>Start an upgrade of MariaDB to 10.4:<\/p>\n<p># <em>yum install MariaDB-server galera-4 MariaDB-client MariaDB-shared MariaDB-backup MariaDB-common<\/em><\/p>\n<p>Once the upgrade is finished, start MariaDB:<\/p>\n<p># <em>systemctl restart mariadb<\/em><\/p>\n<p>Upgrade MySQL databases:<\/p>\n<p># <em>MYSQL_PWD=`cat \/etc\/psa\/.psa.shadow` mysql_upgrade -uadmin<\/em><\/p>\n<p>Restart mariadb service:<\/p>\n<p># <em>systemctl restart mariadb<\/em><\/p>\n<p>The following command updates the package version inside Plesk<\/p>\n<p># <em>plesksbinpackagemng -sdf<\/em><\/p>\n<p>Restore SeLinux context:<\/p>\n<p># <em>restorecon -v \/var\/lib\/mysql\/*<\/em><\/p>\n<p>At <strong>Velan<\/strong>, our server support engineers can help you with upgrade of your database versions on your server. We troubleshoot problems like these for our clients every day.\u00a0If you are interested in our service, please fill the Quick connect form to <a href=\"https:\/\/www.velaninfo.com\/contact\"><strong>get in touch with us<\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Several parameters have defaults that differ from the previous versions and the mail reason for these changes to provide better out-of-box performance and to eliminate the need for the database administrator to change settings manually. Upgrades also give you access to new enhancements made in the newer versions. Following are the instructions for upgrading MySQL&#8230;<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-1021","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-database","Categories_tech_tip-linux","Categories_tech_tip-mysql","Categories_tech_tip-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to upgrade MySQL 5.5 to 5.6\/5.7 or MariaDB 5.5 to 10.X on Linux<\/title>\n<meta name=\"description\" content=\"Steps to upgrade MySQL 5.5 to 5.6\/5.7 and MariaDB 5.5 to 10.0\/10.1\/10.2\/10.3\/10.4\/10.5 on Linux\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to upgrade MySQL 5.5 to 5.6\/5.7 or MariaDB 5.5 to 10.X on Linux Plesk?\" \/>\n<meta property=\"og:description\" content=\"Steps to upgrade MySQL 5.5 to 5.6\/5.7 and MariaDB 5.5 to 10.0\/10.1\/10.2\/10.3\/10.4\/10.5 on Linux\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-21T06:53:28+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/upgrade-mysql5-5-to-5-6-5-7\\\/\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/upgrade-mysql5-5-to-5-6-5-7\\\/\",\"name\":\"How to upgrade MySQL 5.5 to 5.6\\\/5.7 or MariaDB 5.5 to 10.X on Linux\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\"},\"datePublished\":\"2021-04-21T06:23:20+00:00\",\"dateModified\":\"2021-04-21T06:53:28+00:00\",\"description\":\"Steps to upgrade MySQL 5.5 to 5.6\\\/5.7 and MariaDB 5.5 to 10.0\\\/10.1\\\/10.2\\\/10.3\\\/10.4\\\/10.5 on Linux\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/upgrade-mysql5-5-to-5-6-5-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/upgrade-mysql5-5-to-5-6-5-7\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/upgrade-mysql5-5-to-5-6-5-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to upgrade MySQL 5.5 to 5.6\\\/5.7 or MariaDB 5.5 to 10.X on Linux Plesk?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to upgrade MySQL 5.5 to 5.6\/5.7 or MariaDB 5.5 to 10.X on Linux","description":"Steps to upgrade MySQL 5.5 to 5.6\/5.7 and MariaDB 5.5 to 10.0\/10.1\/10.2\/10.3\/10.4\/10.5 on Linux","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/","og_locale":"en_US","og_type":"article","og_title":"How to upgrade MySQL 5.5 to 5.6\/5.7 or MariaDB 5.5 to 10.X on Linux Plesk?","og_description":"Steps to upgrade MySQL 5.5 to 5.6\/5.7 and MariaDB 5.5 to 10.0\/10.1\/10.2\/10.3\/10.4\/10.5 on Linux","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/","og_site_name":"Velan","article_modified_time":"2021-04-21T06:53:28+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/","name":"How to upgrade MySQL 5.5 to 5.6\/5.7 or MariaDB 5.5 to 10.X on Linux","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"datePublished":"2021-04-21T06:23:20+00:00","dateModified":"2021-04-21T06:53:28+00:00","description":"Steps to upgrade MySQL 5.5 to 5.6\/5.7 and MariaDB 5.5 to 10.0\/10.1\/10.2\/10.3\/10.4\/10.5 on Linux","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/upgrade-mysql5-5-to-5-6-5-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How to upgrade MySQL 5.5 to 5.6\/5.7 or MariaDB 5.5 to 10.X on Linux Plesk?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=1021"}],"version-history":[{"count":2,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1021\/revisions"}],"predecessor-version":[{"id":1023,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1021\/revisions\/1023"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=1021"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}