{"id":14990,"date":"2024-10-11T11:22:05","date_gmt":"2024-10-11T11:22:05","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=14990"},"modified":"2024-10-17T07:23:06","modified_gmt":"2024-10-17T07:23:06","password":"","slug":"how-to-install-mariadb-on-almalinux-9","status":"publish","type":"docs","link":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/","title":{"rendered":"How to Install MariaDB on Almalinux 9"},"content":{"rendered":"\n<p>MariaDB is a popular open-source relational database management system, widely used as a drop-in replacement for MySQL. This guide will walk you through the steps to install MariaDB on AlmaLinux.<\/p>\n\n\n\n<p>This guide works on Almalinux 9. For Almalinux 8, please see <strong><a href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-configure-the-apache-web-server-on-an-almalinux\/\" target=\"_blank\" rel=\"noreferrer noopener\">this guide<\/a><\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>AlmaLinux server<\/strong>: A system running AlmaLinux 9.x<\/li>\n\n\n\n<li><strong>Root or Sudo privileges<\/strong>: You need administrative access to install and configure MariaDB.<\/li>\n\n\n\n<li><strong>Internet access<\/strong>: Ensure your server has internet connectivity to download the MariaDB packages.<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Step 1: SSH into your server using <a href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-access-a-server-via-ssh-terminal\/\" target=\"_blank\" rel=\"noreferrer noopener\">these steps<\/a><\/strong><\/h5>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Step 2: Update Your System<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Before installing any new software, it&#8217;s always a good practice to update your package repository.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo dnf update -y<\/strong><\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Step 3 : Create a MariaDB Repository File<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You need to manually create a MariaDB repository configuration file&nbsp; with the name <code>mariadb.repo<\/code>, and you will crate it inside this directory \/etc\/yum.repos.d\/<\/li>\n\n\n\n<li>Use the command below<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>vi \/etc\/yum.repos.d\/mariadb.repo<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"139\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-254.png\" alt=\"\" class=\"wp-image-14952\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-254.png 450w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-254-300x93.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This command will create a new repository file, Once it is created, you need to add the following configuration in that file, then <code>Save<\/code>&nbsp;and&nbsp;<code>exit<\/code>&nbsp;file.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># MariaDB 10.11 RedHatEnterpriseLinux repository list - created 2024-10-11 12:35 EAT\n# https:\/\/mariadb.org\/download\/\n&#91;mariadb]\nname = MariaDB\n# rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https:\/\/mariadb.org\/mirrorbits\/ for details.\n# baseurl = https:\/\/rpm.mariadb.org\/10.11\/rhel\/$releasever\/$basearch\nbaseurl = https:\/\/mirror.23m.com\/mariadb\/yum\/10.11\/rhel\/$releasever\/$basearch\nmodule_hotfixes = 1\n# gpgkey = https:\/\/rpm.mariadb.org\/RPM-GPG-KEY-MariaDB\ngpgkey = https:\/\/mirror.23m.com\/mariadb\/yum\/RPM-GPG-KEY-MariaDB\ngpgcheck = 1<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1023\" height=\"288\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-255.png\" alt=\"\" class=\"wp-image-14953\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-255.png 1023w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-255-300x84.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-255-768x216.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Step 3: Installing MariaDB Server<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Runt the command below to install MariaDB<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>yum install MariaDB-server MariaDB-client<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You will be presented with a series of prompts. Respond with <strong>y<\/strong> to all.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"299\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-256.png\" alt=\"\" class=\"wp-image-14957\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-256.png 848w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-256-300x106.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-256-768x271.png 768w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"186\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-258.png\" alt=\"\" class=\"wp-image-14959\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-258.png 749w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-258-300x74.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"235\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-261.png\" alt=\"\" class=\"wp-image-14962\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-261.png 874w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-261-300x81.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-261-768x206.png 768w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once the installation process it complete, you can now check MariaDB version using this command below;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>mysql -V<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"253\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-262.png\" alt=\"\" class=\"wp-image-14963\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-262.png 798w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-262-300x95.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-262-768x243.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You will now enable MariaDB to start automatically upon system boot,  to start the MariaDB and to verify its status using the commands below.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>systemctl enable mariadb\n\nsystemctl start mariadb\n\nsystemctl status mariadb<\/strong>\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"346\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-263-1024x346.png\" alt=\"\" class=\"wp-image-14964\" style=\"width:840px;height:auto\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-263-1024x346.png 1024w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-263-300x101.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-263-768x259.png 768w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-263-1536x518.png 1536w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-263-2048x691.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 4: Secure your MariaDB server<\/strong><\/p>\n\n\n\n<p>You can secure your MariaDB installation by following these steps<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Start the MariaDB shell using the command below;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>mysql<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Change the root user&#8217;s password using the command below. Replace your_new_password with your actual new password. Keep the password for later use.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>ALTER USER 'root'@'localhost' IDENTIFIED BY 'your_new_password';<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"220\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-266.png\" alt=\"\" class=\"wp-image-14972\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-266.png 715w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-266-300x92.png 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Disallow remote root login for user root. This ensures that the root user can only log in from the localhost:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"95\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-267-1024x95.png\" alt=\"\" class=\"wp-image-14977\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-267-1024x95.png 1024w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-267-300x28.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-267-768x71.png 768w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-267.png 1118w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Remove the test database:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>DROP DATABASE IF EXISTS test;<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"909\" height=\"61\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-268.png\" alt=\"\" class=\"wp-image-14978\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-268.png 909w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-268-300x20.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-268-768x52.png 768w\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reload the privileges to apply the changes:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>FLUSH PRIVILEGES;<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Exit the MariaDB shell:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>exit;<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"120\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-270.png\" alt=\"\" class=\"wp-image-14980\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-270.png 922w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-270-300x39.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-270-768x100.png 768w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You may not log in to MariaDB server using this command, then input the the password that you had set previously,<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>mysql -u root -p<\/strong><\/code><\/pre>\n\n\n\n<p><strong>Step 5: Create new Database and User<\/strong><\/p>\n\n\n\n<p>You will need to crate a database and a user that accesses it. Let&#8217;s create a database called <strong>truehost_db<\/strong> and a user called <strong>truehost_tke<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, log in as root user, using <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>mysql -u root -p<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Run the commands below to create  the database, database user and to grant the use access to the database.<\/li>\n\n\n\n<li>Replace <strong>truehost_db<\/strong>, <strong>truehost_tke<\/strong> and <strong>secretePasswordHere<\/strong> with your actual database name, usernaem and password for the user<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE DATABASE <strong>truehost_db<\/strong>;\n\nCREATE user <strong>truehost_tke<\/strong>;\n\nGRANT ALL ON <strong><strong>truehost_db<\/strong><\/strong>.* TO <strong>truehost_tke<\/strong>@localhost IDENTIFIED BY '<strong>secretePasswordHere<\/strong>';<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"357\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-271.png\" alt=\"\" class=\"wp-image-14982\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-271.png 980w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-271-300x109.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-271-768x280.png 768w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can check available databases. You will see your new database among the available.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>show databases;<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"213\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-272.png\" alt=\"\" class=\"wp-image-14984\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-272.png 828w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-272-300x77.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-272-768x198.png 768w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/figure>\n\n\n\n<p><strong>Step 6: Accessing the database<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can now access MariaDB with the newly created Database and User as shown below,<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>mysql -u truehost_tke -p'secretePasswordHere' truehost_db<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"187\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-273-1024x187.png\" alt=\"\" class=\"wp-image-14985\" srcset=\"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-273-1024x187.png 1024w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-273-300x55.png 300w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-273-768x140.png 768w, https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-273.png 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You may now use your database as you intended; maybe to connect it to a website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MariaDB is a popular open-source relational database management system, widely used as a drop-in replacement for MySQL. This guide will walk you through the steps to install MariaDB on AlmaLinux. This guide works on Almalinux 9. For Almalinux 8, please see this guide. Prerequisites Step 1: SSH into your server using these steps Step 2: [&hellip;]<\/p>\n","protected":false},"author":9,"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":[1820,1824,1879,2128],"doc_tag":[],"class_list":["post-14990","docs","type-docs","status-publish","hentry","doc_category-cloud-servers-in-kenya","doc_category-dedicated-servers","doc_category-servers","doc_category-vps-servers"],"year_month":"2026-06","word_count":631,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Eugene","author_nicename":"eugene","author_url":"https:\/\/www.truehost.com\/support\/author\/eugene\/"},"doc_category_info":[{"term_name":"Cloud servers in Kenya","term_url":"https:\/\/www.truehost.com\/support\/docs-category\/cloud-servers-in-kenya\/"},{"term_name":"dedicated servers","term_url":"https:\/\/www.truehost.com\/support\/docs-category\/dedicated-servers\/"},{"term_name":"Servers","term_url":"https:\/\/www.truehost.com\/support\/docs-category\/servers\/"},{"term_name":"VPS-Servers","term_url":"https:\/\/www.truehost.com\/support\/docs-category\/vps-servers\/"}],"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 Install MariaDB on Almalinux 9 -<\/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:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install MariaDB on Almalinux 9 -\" \/>\n<meta property=\"og:description\" content=\"MariaDB is a popular open-source relational database management system, widely used as a drop-in replacement for MySQL. This guide will walk you through the steps to install MariaDB on AlmaLinux. This guide works on Almalinux 9. For Almalinux 8, please see this guide. Prerequisites Step 1: SSH into your server using these steps Step 2: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-17T07:23:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-254.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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-almalinux-9\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-almalinux-9\\\/\",\"name\":\"How to Install MariaDB on Almalinux 9 -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-almalinux-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-almalinux-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-254.png\",\"datePublished\":\"2024-10-11T11:22:05+00:00\",\"dateModified\":\"2024-10-17T07:23:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-almalinux-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-almalinux-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-almalinux-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-254.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-254.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-almalinux-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install MariaDB on Almalinux 9\"}]},{\"@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 Install MariaDB on Almalinux 9 -","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:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/","og_locale":"en_US","og_type":"article","og_title":"How to Install MariaDB on Almalinux 9 -","og_description":"MariaDB is a popular open-source relational database management system, widely used as a drop-in replacement for MySQL. This guide will walk you through the steps to install MariaDB on AlmaLinux. This guide works on Almalinux 9. For Almalinux 8, please see this guide. Prerequisites Step 1: SSH into your server using these steps Step 2: [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/","article_modified_time":"2024-10-17T07:23:06+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-254.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/","name":"How to Install MariaDB on Almalinux 9 -","isPartOf":{"@id":"https:\/\/www.truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-254.png","datePublished":"2024-10-11T11:22:05+00:00","dateModified":"2024-10-17T07:23:06+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-254.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-254.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-almalinux-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Install MariaDB on Almalinux 9"}]},{"@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\/14990","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/comments?post=14990"}],"version-history":[{"count":6,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/14990\/revisions"}],"predecessor-version":[{"id":15305,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/14990\/revisions\/15305"}],"wp:attachment":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/media?parent=14990"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=14990"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=14990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}