{"id":14461,"date":"2024-10-04T10:03:45","date_gmt":"2024-10-04T10:03:45","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=14461"},"modified":"2025-04-23T14:35:46","modified_gmt":"2025-04-23T14:35:46","password":"","slug":"how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8","status":"publish","type":"docs","link":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/","title":{"rendered":"How to upgrade mariadb on CWP to version  10.11 lts"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>Upgrading your database is essential for your application to run well. In this guide we provide 2 Methods you can use to upgrade.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 1: Automatic &#8211; Using the convenience script <\/strong><\/h2>\n\n\n\n<p>This method will perform all the actions ensuring all checks and upgrades are done well.<\/p>\n\n\n\n<p>Copy the Installation script below and run it. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash &lt;(curl -s https:\/\/gitlab.com\/dannydev77\/cwpdb-upgrade\/-\/raw\/main\/cwpdb-upgrade.sh || wget -qO- https:\/\/gitlab.com\/dannydev77\/cwpdb-upgrade\/-\/raw\/main\/cwpdb-upgrade.sh)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"479\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74-1024x479.png\" alt=\"\" class=\"wp-image-16739\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74-1024x479.png 1024w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74-300x140.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74-768x360.png 768w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74.png 1365w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Running the Script.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"494\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-75-1024x494.png\" alt=\"\" class=\"wp-image-16740\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-75-1024x494.png 1024w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-75-300x145.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-75-768x371.png 768w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-75.png 1359w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Upgrade script complete.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"302\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-76-1024x302.png\" alt=\"\" class=\"wp-image-16741\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-76-1024x302.png 1024w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-76-300x88.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-76-768x226.png 768w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-76.png 1243w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Confirm status after Upgrade. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"478\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-77-1024x478.png\" alt=\"\" class=\"wp-image-16742\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-77-1024x478.png 1024w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-77-300x140.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-77-768x358.png 768w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-77.png 1309w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 2: Manual &#8211; Follow the steps below. <\/strong><\/h2>\n\n\n\n<p>In this part, upgrade is being done from version 10.4 to 10.6<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Adjust to meet your desired version. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Perform backups<\/h3>\n\n\n\n<p>Use the command below to perform a backup of all databases<\/p>\n\n\n\n<p><strong><code>mysql -N -e 'show databases' | while read dbname; do mysqldump --complete-insert --routines --triggers --single-transaction \"$dbname\" &gt; \/home\/backups\/databases\/\"$dbname\".sql; done<\/code><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Get the current db root password. Store it as it will be needed at later stages.<\/h3>\n\n\n\n<p><strong><code>grep -i pass \/root\/.my.cnf<\/code><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3 : Verify the installed version and upgrade. <\/h3>\n\n\n\n<p><strong><code>rpm -qa|grep -i maria|grep \"-10.4.\"<\/code><\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">First you need to change the MariaDB repo and replace it with MariaDB 10.6 repo:<\/h5>\n\n\n\n<p><strong><code>sed -i 's\/10.4\/10.6\/g' \/etc\/yum.repos.d\/mariadb.repo<\/code><\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Second remove MariaDB 10.4 :<\/h5>\n\n\n\n<p><strong><code>systemctl stop mariadb mysql mysqld<br>systemctl disable mariadb<br>rpm --nodeps -ev MariaDB-server<\/code><\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Third Install MariaDB 10.6 :<\/h5>\n\n\n\n<p><strong><code>yum clean all<br>yum -y update \"MariaDB-*\"<br>yum -y install MariaDB-server<br>systemctl enable mariadb<br>systemctl start mariadb<\/code><\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Fourth you need to upgrade your database tables to the latest version:<\/h5>\n\n\n\n<p>After upgrade, you can use &#8220;mysql&#8221; command to verify the MariaDB version running on your server<\/p>\n\n\n\n<p>mysql_upgrade &#8211;force<\/p>\n\n\n\n<p>mysql &#8211;version<\/p>\n\n\n\n<p>Lastly confirm with<\/p>\n\n\n\n<p><strong><code>systemctl status mariadb<\/code><\/strong><\/p>\n\n\n\n<p>====================================================<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrading your database is essential for your application to run well. In this guide we provide 2 Methods you can use to upgrade. Method 1: Automatic &#8211; Using the convenience script This method will perform all the actions ensuring all checks and upgrades are done well. Copy the Installation script below and run it. Running [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[2120],"doc_tag":[],"class_list":["post-14461","docs","type-docs","status-publish","hentry","doc_category-cwp-panel"],"year_month":"2026-06","word_count":277,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Kibera","author_nicename":"dan-k","author_url":"https:\/\/www.truehost.com\/support\/author\/dan-k\/"},"doc_category_info":[{"term_name":"CWP Panel","term_url":"https:\/\/www.truehost.com\/support\/docs-category\/cwp-panel\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to upgrade mariadb on CWP to version 10.11 lts -<\/title>\n<meta name=\"description\" content=\"Upgrading your CWP database is essential for your application to run well. In this guide we provide 2 Methods you can use to upgrade.\" \/>\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.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to upgrade mariadb on CWP to version 10.11 lts -\" \/>\n<meta property=\"og:description\" content=\"Upgrading your CWP database is essential for your application to run well. In this guide we provide 2 Methods you can use to upgrade.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-23T14:35:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74-1024x479.png\" \/>\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.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\\\/\",\"name\":\"How to upgrade mariadb on CWP to version 10.11 lts -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-74-1024x479.png\",\"datePublished\":\"2024-10-04T10:03:45+00:00\",\"dateModified\":\"2025-04-23T14:35:46+00:00\",\"description\":\"Upgrading your CWP database is essential for your application to run well. In this guide we provide 2 Methods you can use to upgrade.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-74-1024x479.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-74-1024x479.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to upgrade mariadb on CWP to version 10.11 lts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to upgrade mariadb on CWP to version 10.11 lts -","description":"Upgrading your CWP database is essential for your application to run well. In this guide we provide 2 Methods you can use to upgrade.","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.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/","og_locale":"en_US","og_type":"article","og_title":"How to upgrade mariadb on CWP to version 10.11 lts -","og_description":"Upgrading your CWP database is essential for your application to run well. In this guide we provide 2 Methods you can use to upgrade.","og_url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/","article_modified_time":"2025-04-23T14:35:46+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74-1024x479.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/","url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/","name":"How to upgrade mariadb on CWP to version 10.11 lts -","isPartOf":{"@id":"https:\/\/www.truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/#primaryimage"},"image":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74-1024x479.png","datePublished":"2024-10-04T10:03:45+00:00","dateModified":"2025-04-23T14:35:46+00:00","description":"Upgrading your CWP database is essential for your application to run well. In this guide we provide 2 Methods you can use to upgrade.","breadcrumb":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74-1024x479.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-74-1024x479.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upgrade-mariadb-on-cwp-from-10-4-to-10-6-on-almalinux-8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to upgrade mariadb on CWP to version 10.11 lts"}]},{"@type":"WebSite","@id":"https:\/\/www.truehost.com\/support\/#website","url":"https:\/\/www.truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/www.truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/www.truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/14461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/comments?post=14461"}],"version-history":[{"count":8,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/14461\/revisions"}],"predecessor-version":[{"id":18695,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/14461\/revisions\/18695"}],"wp:attachment":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/media?parent=14461"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=14461"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=14461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}