{"id":17100,"date":"2022-02-04T13:03:35","date_gmt":"2022-02-04T12:03:35","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/"},"modified":"2022-05-31T16:33:33","modified_gmt":"2022-05-31T14:33:33","slug":"how-to-install-a-specific-version-of-mariadb","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/","title":{"rendered":"How to install a specific version of MariaDB"},"content":{"rendered":"<p>Recently, we had to upgrade a MariaDB server from version 10.5.4 to 10.5.13. Before to do the upgrade on a production server, I wanted to test it on a personal VM.<br \/>\nBut first, I had to find how to install the specific version 10.5.4 of MariaDB. Today, I&#8217;m going to explain how to install a specific version of MariaDB and how to upgrade it to an other specific version.<br \/>\n<!--more--><br \/>\nI&#8217;ll now explain how to install MariaDB server version 10.5.4. The first step is to download the MariaDB script to configure access to their MariaDB Package Repositories :<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">wget https:\/\/downloads.mariadb.com\/MariaDB\/mariadb_repo_setup<\/pre>\n<p>Note that you can add some parameters when you pull the file, like &#8211;mariadb-server-version=&lt;version&gt; that will override the default MariaDB Server version.<br \/>\nExample : <\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">curl -LsS https:\/\/r.mariadb.com\/downloads\/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=\"mariadb-10.6\"<\/pre>\n<p>Then don&#8217;t forget to give the execution right to the script you just downloaded.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">chmod +x mariadb_repo_setup<\/pre>\n<p>If you didn&#8217;t mention the MariaDB version when downloading the script, now is the time to change it to choose the MariaDB version you want to install. You can find all the different packages available here at MariaDB repository configuration tool : <a href=\"https:\/\/downloads.mariadb.org\/\">https:\/\/downloads.mariadb.org\/<\/a><\/p>\n<p>Use this command to edit the script :<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">.\/mariadb_repo_setup --mariadb-server-version=\"mariadb-10.5.4\"<\/pre>\n<p>You can now install the MariaDB server. I used yum install as I was working on a Redhat VM.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">sudo yum install mariadb-server mariadb-backup<\/pre>\n<p>After the installation, have a look if it was properly installed (by listing all the installed package) and if the mysql service is running. If it&#8217;s not running, try to start it.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\napt list --installed|grep-i mariadb\nsystemctl status mysql\nsystemctl start mysql\n<\/pre>\n<p>You can also try to connect to MariaDB server to check its version.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\nmysql\n<\/pre>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png\" alt=\"mysql command\" width=\"600\" height=\"136\" class=\"alignnone size-medium wp-image-54201\" \/><\/a><\/p>\n<p><strong>Now, let&#8217;s see how to upgrade the version of an installed MariaDB server.<\/strong><\/p>\n<p>First, you have to remove all the packages concerning MariaDB.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\nyum remove \"mariadb-*\"\n<\/pre>\n<p>Then you simply have to repeat the steps that we&#8217;ve seen above.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n.\/mariadb_repo_setup --mariadb-server-version=\"mariadb-10.5.13\"\nyum install -y mariadb-server mariadb-backup\nsystemctl status mysql\nsystemctl start mysql\nmysql\n<\/pre>\n<p>You can find all the information on MariaDB Package Repository Setup and Usage at the following link :<br \/>\n<a href=\"https:\/\/mariadb.com\/kb\/en\/mariadb-package-repository-setup-and-usage\/\">https:\/\/mariadb.com\/kb\/en\/mariadb-package-repository-setup-and-usage <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, we had to upgrade a MariaDB server from version 10.5.4 to 10.5.13. Before to do the upgrade on a production server, I wanted to test it on a personal VM. But first, I had to find how to install the specific version 10.5.4 of MariaDB. Today, I&#8217;m going to explain how to install a [&hellip;]<\/p>\n","protected":false},"author":87,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[141],"type_dbi":[],"class_list":["post-17100","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","tag-mariadb"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to install a specific version of MariaDB - dbi Blog<\/title>\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.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install a specific version of MariaDB\" \/>\n<meta property=\"og:description\" content=\"Recently, we had to upgrade a MariaDB server from version 10.5.4 to 10.5.13. Before to do the upgrade on a production server, I wanted to test it on a personal VM. But first, I had to find how to install the specific version 10.5.4 of MariaDB. Today, I&#8217;m going to explain how to install a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-04T12:03:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-31T14:33:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png\" \/>\n<meta name=\"author\" content=\"Joan Frey\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joan Frey\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/\"},\"author\":{\"name\":\"Joan Frey\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/c03c47649664fe73b27ce457e99f5b06\"},\"headline\":\"How to install a specific version of MariaDB\",\"datePublished\":\"2022-02-04T12:03:35+00:00\",\"dateModified\":\"2022-05-31T14:33:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/\"},\"wordCount\":321,\"commentCount\":2,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png\",\"keywords\":[\"MariaDB\"],\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/\",\"name\":\"How to install a specific version of MariaDB - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png\",\"datePublished\":\"2022-02-04T12:03:35+00:00\",\"dateModified\":\"2022-05-31T14:33:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/c03c47649664fe73b27ce457e99f5b06\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install a specific version of MariaDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/c03c47649664fe73b27ce457e99f5b06\",\"name\":\"Joan Frey\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/1e650cf665b4d44dd186355827c0b049d2f95c8cbb45fd10d4e7cb255be67ecb?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1e650cf665b4d44dd186355827c0b049d2f95c8cbb45fd10d4e7cb255be67ecb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1e650cf665b4d44dd186355827c0b049d2f95c8cbb45fd10d4e7cb255be67ecb?s=96&d=mm&r=g\",\"caption\":\"Joan Frey\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/joanfrey\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to install a specific version of MariaDB - dbi Blog","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.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/","og_locale":"en_US","og_type":"article","og_title":"How to install a specific version of MariaDB","og_description":"Recently, we had to upgrade a MariaDB server from version 10.5.4 to 10.5.13. Before to do the upgrade on a production server, I wanted to test it on a personal VM. But first, I had to find how to install the specific version 10.5.4 of MariaDB. Today, I&#8217;m going to explain how to install a [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/","og_site_name":"dbi Blog","article_published_time":"2022-02-04T12:03:35+00:00","article_modified_time":"2022-05-31T14:33:33+00:00","og_image":[{"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png","type":"","width":"","height":""}],"author":"Joan Frey","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Joan Frey","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/"},"author":{"name":"Joan Frey","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/c03c47649664fe73b27ce457e99f5b06"},"headline":"How to install a specific version of MariaDB","datePublished":"2022-02-04T12:03:35+00:00","dateModified":"2022-05-31T14:33:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/"},"wordCount":321,"commentCount":2,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png","keywords":["MariaDB"],"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/","url":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/","name":"How to install a specific version of MariaDB - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png","datePublished":"2022-02-04T12:03:35+00:00","dateModified":"2022-05-31T14:33:33+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/c03c47649664fe73b27ce457e99f5b06"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/02\/Capture-2.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-install-a-specific-version-of-mariadb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install a specific version of MariaDB"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/c03c47649664fe73b27ce457e99f5b06","name":"Joan Frey","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1e650cf665b4d44dd186355827c0b049d2f95c8cbb45fd10d4e7cb255be67ecb?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1e650cf665b4d44dd186355827c0b049d2f95c8cbb45fd10d4e7cb255be67ecb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1e650cf665b4d44dd186355827c0b049d2f95c8cbb45fd10d4e7cb255be67ecb?s=96&d=mm&r=g","caption":"Joan Frey"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/joanfrey\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=17100"}],"version-history":[{"count":1,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17100\/revisions"}],"predecessor-version":[{"id":17101,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17100\/revisions\/17101"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=17100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=17100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=17100"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=17100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}