{"id":15799,"date":"2024-10-24T12:01:25","date_gmt":"2024-10-24T12:01:25","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=15799"},"modified":"2024-10-24T13:07:56","modified_gmt":"2024-10-24T13:07:56","password":"","slug":"how-to-install-mariadb-on-ubuntu-22-04","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/","title":{"rendered":"How To Install MariaDB on Ubuntu 22.04"},"content":{"rendered":"\n<p>MariaDB is an open-source relational database management system often used as a substitute for MySQL in the widely-used LAMP stack (Linux, Apache, MySQL, PHP\/Python\/Perl). It is designed to serve as a drop-in replacement for MySQL.<\/p>\n\n\n\n<p>To install <strong>MariaDB<\/strong> on <strong>Ubuntu 22.04<\/strong>, you can follow these steps:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A server running Ubuntu 22.04<\/li>\n\n\n\n<li>SSH Access to the server with root or a sudo user<\/li>\n<\/ul>\n\n\n\n<p>You could also check our tutorial on  <strong><a href=\"https:\/\/truehost.com\/support\/knowledge-base\/first-server-setup-with-ubuntu\/\">First Server Setup with Ubuntu <\/a><\/strong>to get set with the initial set up.<\/p>\n\n\n\n<p><strong>Step 1: Update the System<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Before installing MariaDB, ensure that your package index is updated to the latest available versions by running:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo apt update<\/strong><\/code><\/pre>\n\n\n\n<p><strong>Step 2: Install MariaDB<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The MariaDB packages are available in the official Ubuntu repositories. You can install it using the <code>apt<\/code> package manager:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo apt install mariadb-server mariadb-client<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The above command installs both the <strong>MariaDB server<\/strong> and the <strong>MariaDB client<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"261\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-529.png\" alt=\"\" class=\"wp-image-15806\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-529.png 1009w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-529-300x78.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-529-768x199.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"831\" height=\"153\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-530.png\" alt=\"\" class=\"wp-image-15807\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-530.png 831w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-530-300x55.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-530-768x141.png 768w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/figure>\n\n\n\n<p><strong>Step 3: Start and Enable MariaDB<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once MariaDB is installed, start the service and enable it to automatically start on boot.<\/li>\n\n\n\n<li>Start the MariaDB service:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo systemctl start mariadb<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enable MariaDB to start at boot:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo systemctl enable mariadb<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verify that the service is running:<\/li>\n\n\n\n<li>You should see output indicating that MariaDB is active and running.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo systemctl status mariadb<\/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=\"523\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-531-1024x523.png\" alt=\"\" class=\"wp-image-15809\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-531-1024x523.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-531-300x153.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-531-768x392.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-531.png 1236w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 4: Secure the MariaDB Installation<\/strong><\/p>\n\n\n\n<p>MariaDB includes a security script that can remove some insecure defaults, like anonymous users and test databases. To run the script:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo mysql_secure_installation<\/strong><\/code><\/pre>\n\n\n\n<p>The script will prompt you to perform several security-related tasks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enter current password for root<\/strong>: Press <strong>Enter<\/strong><\/li>\n\n\n\n<li><strong>Switch to unix_socket authentication<\/strong>: Answer <code>Y<\/code> to switch<\/li>\n\n\n\n<li><strong>Set\/Change the root password<\/strong>: You will be asked whether to set a root password. On new installations, you may not need to, as MariaDB on Ubuntu may use the <code>unix_socket<\/code> plugin for root access. Press <strong>Enter<\/strong> or <strong>Answer n<\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Remove anonymous users<\/strong>: Answer <code>Y<\/code> to remove anonymous users.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Disallow remote root login<\/strong>: Answer <code>Y<\/code> to disallow root login remotely.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Remove the test database<\/strong>: Answer <code>Y<\/code> to remove the test database.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Reload privilege tables<\/strong>: Answer <code>Y<\/code> to reload the privilege tables.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"791\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-532-1024x791.png\" alt=\"\" class=\"wp-image-15810\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-532-1024x791.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-532-300x232.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-532-768x593.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-532.png 1110w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 5: Verify MariaDB Installation<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To verify that MariaDB is installed correctly, log into the MariaDB shell:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo mysql<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once inside the MariaDB shell, check the version: You should see the MariaDB version number.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>SELECT VERSION();<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"597\" height=\"324\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-533.png\" alt=\"\" class=\"wp-image-15811\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-533.png 597w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-533-300x163.png 300w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Exit the shell using the exit command<\/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\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"99\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-534.png\" alt=\"\" class=\"wp-image-15812\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-534.png 827w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-534-300x36.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-534-768x92.png 768w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/figure>\n\n\n\n<p><strong>Step 6: Creating an Administrative User that Employs Password Authentication (Optional) <\/strong><\/p>\n\n\n\n<p>On Ubuntu systems running MariaDB 10.5, the default root user is configured to authenticate via the <code>unix_socket<\/code> plugin, instead of using a password. This improves security and ease of use, especially for local access, but it can be inconvenient when external programs (such as phpMyAdmin) require administrative access<\/p>\n\n\n\n<p>It is advised to create a separate administrative account specifically for password-based access. To create this new administrative account, follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access the MariaDB prompt from your terminal:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo mariadb<\/strong><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a new user named <code>admin<\/code> with root-level privileges and password authentication. Replace <code><strong>admin<\/strong><\/code> and <code><strong>password<\/strong><\/code> with your preferred username and password respectively.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"93\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-535-1024x93.png\" alt=\"\" class=\"wp-image-15813\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-535-1024x93.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-535-300x27.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-535-768x70.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-535.png 1113w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Save the changes by flushing the privileges:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>FLUSH PRIVILEGES;<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"189\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-536.png\" alt=\"\" class=\"wp-image-15814\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-536.png 1019w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-536-300x56.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-536-768x142.png 768w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/figure>\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>exit<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"99\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-538.png\" alt=\"\" class=\"wp-image-15816\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-538.png 827w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-538-300x36.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-538-768x92.png 768w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/figure>\n\n\n\n<p><strong>Step 7: Confirm that MariaDB Installation is running<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To verify that MariaDB is installed correctly, log into the MariaDB shell:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo systemctl status mariadb<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"197\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-537-1024x197.png\" alt=\"\" class=\"wp-image-15815\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-537-1024x197.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-537-300x58.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-537-768x148.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-537.png 1246w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If MariaDB is not running, you can start it with:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo systemctl start mariadb<\/strong><\/code><\/pre>\n\n\n\n<p>That&#8217;s it! You&#8217;ve successfully installed and secured MariaDB on Ubuntu 22.04.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MariaDB is an open-source relational database management system often used as a substitute for MySQL in the widely-used LAMP stack (Linux, Apache, MySQL, PHP\/Python\/Perl). It is designed to serve as a drop-in replacement for MySQL. To install MariaDB on Ubuntu 22.04, you can follow these steps: Prerequisites You could also check our tutorial on First [&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,1833,1879,2128],"doc_tag":[],"class_list":["post-15799","docs","type-docs","status-publish","hentry","doc_category-cloud-servers-in-kenya","doc_category-dedicated-servers","doc_category-mysql","doc_category-servers","doc_category-vps-servers"],"year_month":"2026-06","word_count":572,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Eugene","author_nicename":"eugene","author_url":"https:\/\/truehost.com\/support\/author\/eugene\/"},"doc_category_info":[{"term_name":"Cloud servers in Kenya","term_url":"https:\/\/truehost.com\/support\/docs-category\/cloud-servers-in-kenya\/"},{"term_name":"dedicated servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/dedicated-servers\/"},{"term_name":"MySQL","term_url":"https:\/\/truehost.com\/support\/docs-category\/mysql\/"},{"term_name":"Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/servers\/"},{"term_name":"VPS-Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/vps-servers\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Install MariaDB on Ubuntu 22.04 -<\/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-ubuntu-22-04\/\" \/>\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 Ubuntu 22.04 -\" \/>\n<meta property=\"og:description\" content=\"MariaDB is an open-source relational database management system often used as a substitute for MySQL in the widely-used LAMP stack (Linux, Apache, MySQL, PHP\/Python\/Perl). It is designed to serve as a drop-in replacement for MySQL. To install MariaDB on Ubuntu 22.04, you can follow these steps: Prerequisites You could also check our tutorial on First [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-24T13:07:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-529.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-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-ubuntu-22-04\\\/\",\"name\":\"How To Install MariaDB on Ubuntu 22.04 -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-529.png\",\"datePublished\":\"2024-10-24T12:01:25+00:00\",\"dateModified\":\"2024-10-24T13:07:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-529.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-529.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-mariadb-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install MariaDB on Ubuntu 22.04\"}]},{\"@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:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/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 Ubuntu 22.04 -","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-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How To Install MariaDB on Ubuntu 22.04 -","og_description":"MariaDB is an open-source relational database management system often used as a substitute for MySQL in the widely-used LAMP stack (Linux, Apache, MySQL, PHP\/Python\/Perl). It is designed to serve as a drop-in replacement for MySQL. To install MariaDB on Ubuntu 22.04, you can follow these steps: Prerequisites You could also check our tutorial on First [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/","article_modified_time":"2024-10-24T13:07:56+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-529.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-ubuntu-22-04\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/","name":"How To Install MariaDB on Ubuntu 22.04 -","isPartOf":{"@id":"https:\/\/www.truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-529.png","datePublished":"2024-10-24T12:01:25+00:00","dateModified":"2024-10-24T13:07:56+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-529.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/10\/image-529.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-mariadb-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How To Install MariaDB on Ubuntu 22.04"}]},{"@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:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/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:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/15799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=15799"}],"version-history":[{"count":5,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/15799\/revisions"}],"predecessor-version":[{"id":15818,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/15799\/revisions\/15818"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=15799"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=15799"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=15799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}